added method to add socket reference
server is now persistent