react-native-use-websocket icon indicating copy to clipboard operation
react-native-use-websocket copied to clipboard

Websocket subscribe to topic

Open begouravdev opened this issue 2 years ago • 0 comments

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)

begouravdev avatar Jul 23 '22 15:07 begouravdev