Websocket.io implementation for synchronous search