Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket subscribe to topic #26

Open
begouravdev opened this issue Jul 23, 2022 · 0 comments
Open

Websocket subscribe to topic #26

begouravdev opened this issue Jul 23, 2022 · 0 comments

Comments

@begouravdev
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant