Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

socket.kickOut fails #49

Open
MegaGM opened this issue Jan 31, 2023 · 3 comments · Fixed by #51
Open

socket.kickOut fails #49

MegaGM opened this issue Jan 31, 2023 · 3 comments · Fixed by #51
Assignees

Comments

@MegaGM
Copy link
Member

MegaGM commented Jan 31, 2023

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 #29

@MegaGM
Copy link
Member Author

MegaGM commented Jan 31, 2023

I'll make PRs, which also will enable accepting arrays.
socket.kickOut(['foo', 'bar'], 'message')

@MegaGM MegaGM self-assigned this Jan 31, 2023
This was referenced Jan 31, 2023
@MegaGM
Copy link
Member Author

MegaGM commented Feb 8, 2023

TODO

@MegaGM
Copy link
Member Author

MegaGM commented Feb 9, 2023

I guess I'll reopen this issue until

@MegaGM MegaGM reopened this Feb 9, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant