fix chat and search sockets, need disconnect and invite