How to use socket pub/sub #134
-
Hello all, I'm building an app via HyperExpress and I'm not sure how to use the pub/sub feature for websockets. Tried to find an example without much success. Anyone? |
Beta Was this translation helpful? Give feedback.
Answered by
kartikk221
Nov 7, 2022
Replies: 1 comment 2 replies
-
Hello, please see the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
kartikk221
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, please see the
Websocket
component documentation for pub/sub with the MQTT syntax. In simple terms, you would have a flow where whenever a Websocket connection is received, you subscribe to a certain topic and then you can dispatch notifications over those topic(s) with theServer.publish
method.