Push constructor
Push(
- PhoenixChannel channel, {
- PhoenixChannelEvent? event,
- PayloadGetter? payload,
- 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>();