WebSocket constructor

WebSocket(
  1. Object url, [
  2. Object? protocols
])

Implementation

factory WebSocket(
  _i2.Object url, [
  _i2.Object? protocols,
]) =>
    _i4.callConstructor(
      _declaredWebSocket,
      [
        url,
        protocols ?? _i6.undefined,
      ],
    );