Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

refactor broadcasting to support except and restrict #692

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

hhaensel
Copy link
Member

Currently, it is not possible to address single clients by push! or run commands.

To remedy this situation I propose to

  • modify existing keyword except to support not only UInt, but also Vetor{UInt} to exclude more than one client
  • remove WebSocket as a possible value for except and rather supply the id as it is done in WebThreads
  • add a keyword restrict to restrict messages to a client or list of clients

Furthermore, I have removed duplicate code in WebThreads.

There's a corresponding PR in Stipple.

@essenciary essenciary merged commit 68a80ec into GenieFramework:master Nov 28, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants