Serializes the instance into a plain JavaScript object.
This method is automatically invoked when the instance is passed to JSON.stringify()
.
In Node.js, it's also used when the instance is logged via console.log()
(via the util.inspect
mechanism).
Represents a Donation Alerts Centrifugo private channel.
Remarks
This class provides access to a private channel's data, including its name (
channel
) and the token required to connect to this channel (token
).