Websocket Behaviour #5907
Unanswered
rehatkathuria
asked this question in
Q&A
Replies: 1 comment 1 reply
-
For all the API methods see the official docs: https://bun.sh/docs/api/websockets |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following use case:
Initially, I considered using websockets to notify the client of this event but upon further reading it seems like the
publish
methods drop the message when sending to the original subscriber. Am I incorrect in presuming this would have been the best way to notify the client? Are there other websocket methods?I presumed I'd be able to simply do the following:
foo
foo
(in this case a single client who is interested in events associated with their account)Note: the
foo
here is for conveying the problem and realistically I would probably have it represent the user identifierAny insight and help would be apprecaited!
Beta Was this translation helpful? Give feedback.
All reactions