Push constructor

Push(
  1. PhoenixChannel channel, {
  2. PhoenixChannelEvent? event,
  3. PayloadGetter? payload,
  4. Duration? timeout,
})

Build a Push message from its content and associated channel.

Prefer using PhoenixChannel.push instead of using this.

Implementation

Push(
  PhoenixChannel channel, {
  this.event,
  this.payload,
  this.timeout,
})  : _channel = channel,
      _logger = Logger('phoenix_socket.push.${channel.loggerName}'),
      _responseCompleter = Completer<PushResponse>();