Don't tie socket to resource, instead link to resource type and create resource reference with each message