removing server-side socket.io code