Skip to content

How to detach/remove callback from socket ? #118

@jayendra13

Description

@jayendra13

The documentation doesn't suggest any way to remove callback from socket. We can access the raw websocket object from property and call removeEventListener method of it, but that is not working for me.

var stream = $websocket("ws://localhost:7070/ws");

stream.socket.removeEventListener('message', callback);

Can anyone help me here ?

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