subscribe method

Channel subscribe(
  1. String channelName
)

Subscribe to a channel Use the returned Channel to bind events

Implementation

Channel subscribe(String channelName) {
  return Channel(name: channelName, pusher: this, channel: _channel);
}