WebSocketConnectionRequest constructor

WebSocketConnectionRequest({
  1. required AccessToken token,
  2. required String id,
  3. Duration timeout = const Duration(seconds: 30),
  4. 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);
}