transport method

NativeTransport transport({
  1. int window = 8 << 20,
})

A transport on this library, for WebSocketOptions.transport. install must have been called once.

Implementation

NativeTransport transport({int window = 8 << 20}) {
  if (!_initialized) {
    throw StateError('Call WsNativeLibrary.install() first');
  }
  return NativeTransport(this, window: window);
}