WebSocket(String url, [protocol_OR_protocols])

Source

@DomName('WebSocket.WebSocket')
@DocsEditable()
factory WebSocket(String url, [protocol_OR_protocols]) {
  if ((url is String || url == null) && protocol_OR_protocols == null) {
    return wrap_jso(_blink.BlinkWebSocket.instance.constructorCallback_1_(url));
  }
  if ((protocol_OR_protocols is String || protocol_OR_protocols == null) && (url is String || url == null)) {
    return wrap_jso(_blink.BlinkWebSocket.instance.constructorCallback_2_(url, protocol_OR_protocols));
  }
  if ((protocol_OR_protocols is List<String> || protocol_OR_protocols == null) && (url is String || url == null)) {
    List protocols_1 = convertDartToNative_StringArray(protocol_OR_protocols);
    return wrap_jso(_blink.BlinkWebSocket.instance.constructorCallback_2_(url, protocols_1));
  }
  throw new ArgumentError("Incorrect number or type of arguments");
}