Encapsulated socket.io dependency