resend method

Future<void> resend(
  1. Duration? newTimeout
)

Retry to send the push message.

This is usually done automatically by the managing PhoenixChannel after a reconnection.

Implementation

Future<void> resend(Duration? newTimeout) async {
  timeout = newTimeout ?? timeout;
  if (_sent) {
    reset();
  }
  await send();
}