implements socket.io service