WebSocketConnectionRequest constructor
WebSocketConnectionRequest({
- required AccessToken token,
- required String id,
- Duration timeout = const Duration(seconds: 30),
- required void onTimeout(),
Implementation
WebSocketConnectionRequest(
{required this.token,
required this.id,
Duration timeout = const Duration(seconds: 30),
required void Function() onTimeout})
: create = DateTime.now() {
Timer(timeout, onTimeout);
}