Add server side logic for SocketIO.