PubSub Client
The PubSub Client enables real-time publish/subscribe messaging. It connects to SignalWire and allows you to subscribe to channels and publish messages to them.
After instantiating, call subscribe() to join channels, then use publish() to send messages and listen for the message event to receive them. See Events for all available events.
Constructor
▸ new PubSub.Client(opts): PubSub.Client
Creates a new PubSub Client instance.