SocketTransport constructor

SocketTransport({
  1. required String protocol,
  2. required int version,
  3. required String url,
  4. required List<String> subscriptions,
})

The transport layer used to perform JSON-RPC 2 requests.

Implementation

SocketTransport({
  required this.protocol,
  required this.version,
  required this.url,
  required this.subscriptions,
}) : _eventBus = EventBus();