socketcluster-server
socketcluster-server copied to clipboard
socket.kickOut fails
socket.kickOut() with no arguments provided fails to unsubscribe the socket from channels.
await socket.exchange.invokePublish('foo', 1)
socket.kickOut()
await sleep(300)
await socket.exchange.invokePublish('foo', 2)
Client receives #kickOut but still receives the second message after that.
socketcluster-server v14 and v17 exhibit the same behavior.
Slightly related https://github.com/SocketCluster/socketcluster-server/issues/29
I'll make PRs, which also will enable accepting arrays.
socket.kickOut(['foo', 'bar'], 'message')
TODO
- [ ] update v14 types - https://github.com/DefinitelyTyped/DefinitelyTyped/pull/64279
- [x] update v17 types - https://github.com/DefinitelyTyped/DefinitelyTyped/pull/64280
- [x] update docs for version
nextin Docusaurus
I guess I'll reopen this issue until
- [ ]
npm publishsocketcluster-serverv14.7.3+https://github.com/DefinitelyTyped/DefinitelyTyped/pull/64279#issuecomment-1424385059