onWebSocketExchangeTimeout<T> method

  1. @protected
Future<JsonRpcResponse<T>> Function() onWebSocketExchangeTimeout<T>()

Creates an onTimeout callback function for a webSocketExchange.

Implementation

@protected
Future<JsonRpcResponse<T>> Function() onWebSocketExchangeTimeout<T>()
  => () => Future.error(
    TimeoutException('[SolanaMobileWebSocketConnection] web socket request timed out.'),
  );