How to use subscribe to a topic feature in this lib?
basically, the backend is using this lib adonis-websocket-client here is a function that subscribe to topic.
here is an example
this.ws.withJwtToken(this.token).subscribe(channel)
Sending a message to a specific topic
socket.ws.getSubscription(topic).emit(event, message)
How to use subscribe to a topic feature in this lib?
basically, the backend is using this lib
adonis-websocket-clienthere is a function thatsubscribetotopic.here is an example
this.ws.withJwtToken(this.token).subscribe(channel)Sending a message to a specific topic
socket.ws.getSubscription(topic).emit(event, message)