error method

  1. @override
PusherChannel error(
  1. Function callback
)
override

Register a callback to be called anytime a subscription error occurs.

Implementation

@override
PusherChannel error(Function callback) =>
    on('pusher:subscription_error', (status) => callback(status));