Skip to content

Websocket subscribe to topic #26

@begouravdev

Description

@begouravdev

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions