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

websocat broadcast should support "groups" #128

Open
Zibri opened this issue Jul 29, 2021 · 2 comments
Open

websocat broadcast should support "groups" #128

Zibri opened this issue Jul 29, 2021 · 2 comments

Comments

@Zibri
Copy link

Zibri commented Jul 29, 2021

afaik, the websocket broadcast listens on an address. any request is brodcast to all other connections.

what would be useful instead is something like:

wss://example.org/dhgfdjkhfgdjhfgdj

in this way only clients connecting to the same url will get all the messages sent by others connecting to the same address.

wss://example.org/dhgfdjkhfgdjhfg/group1
wss://example.org/dhgfdjkhfgdjhfg/group2

hint:
just take everthing after the root and use it as a groupname.
in the above examples:
"dhgfdjkhfgdjhfg/group1" and wss://example.org/dhgfdjkhfgdjhfg/group2 will be 2 different groups as
wss://example.org/dhgfdZZZfgdjhfg/group2 will be a third group.

@vi
Copy link
Owner

vi commented Jul 29, 2021

Maybe you want my other project: https://github.com/vi/wsbroad/ ?

If needed I can provide a compiled build of version 0.2 (which is more stable than 0.1).

Maybe wsbroad should be mentioned in some README document, as you are not the first who asks (#100).

@Zibri
Copy link
Author

Zibri commented Aug 2, 2021

Yep.. I also have a server that does the same in nodejs (based on the "dead" togetherjs) I am just saying that should be a part of websocat.

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

No branches or pull requests

2 participants