Closed Claim0013 closed 8 months ago
I think this is outside of the scope of this library which manages a WebSocket connection. This is just a bi-direction communication channel and doesn't itself include features like topics and subscriptions which may be provided by higher level messaging protocols supported by RabbitMQ such as STOMP.
I agree with @danielmcmillan. I would love to make this library more usable, but something like this should be implemented based on individual requirements as there are many ways to go about it.
Hey! I am sorry if this has been asked before (I did read through the whole documentation and searched through the Issues), but I am unable to subscribe to a specific topic after connecting to my backend.
I use RabbitMQ. And before this I was using StompJS.
The backend usually sends messages to specific topics which the frontend then receives if it's subscribed to them and sometimes only if it's the right frontend -> specified by IP address.
My backend looks like this:
I can successfully connect to "ws://localhost:8600/myEndPoint" but I cannot subscribe as I did before to a certain topic.
I am using an older approach where we have to handle reconnections and everything else, so
react-use-websocket
looked super to use instead.This is the old way btw.
Am I doing something wrong? Is it not possible to subscribe to a topic? Any help is appreciated.
Thanks