implemented Search web socket handler