Replies: 1 comment 1 reply
-
Actually this is pretty essy, I usually wrap the client inside another class to handle all main methods like publish/subscribe and connection management, in that case you simply keep track of calls to "subscribe"/unaubscribe and store the topics inside an array... alternatively you can check this: #1762 Basically there is a private variable under client that is used to keep track of topics we need to resubscribe in case of a reconnection, you can access it even without a getter just use the square brackets instead of the point notation. |
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
-
This might be silly but I can't seem to find it in the API, how can I check to see which topics my client is currently subscribed to?
Beta Was this translation helpful? Give feedback.
All reactions