use static method

void use(
  1. WebSocketTransport? transport
)

Makes transport the default for clients created afterwards; null restores the platform transport.

Implementation

// ignore: use_setters_to_change_properties
static void use(WebSocketTransport? transport) => _current = transport;