Listener for subscription-based events in Centrifugo channels.
Remarks
This class represents a connection to a specific Centrifugo channel associated with a user.
It handles event subscriptions and provides information about the connected channel and user.
You can use it to manage events and to remove the associated listener when it's no longer needed.
Example
console.log(listener.channel); // Full channel name console.log(listener.userId); // User's ID
Listener for subscription-based events in Centrifugo channels.
Remarks
This class represents a connection to a specific Centrifugo channel associated with a user. It handles event subscriptions and provides information about the connected channel and user. You can use it to manage events and to remove the associated listener when it's no longer needed.
Example