bind method

Future bind(
  1. String eventName,
  2. void onEvent(
    1. Event?
    )
)

Bind to listen for events sent on the given channel

Implementation

Future bind(String eventName, void Function(Event?) onEvent) async {
  await Pusher._bind(name!, eventName, onEvent: onEvent);
}