WebSocket constructor

WebSocket(String url, [ Object protocols ])

Implementation

factory WebSocket(String url, [Object protocols]) {
  if (protocols != null) {
    return WebSocket._create_1(url, protocols);
  }
  return WebSocket._create_2(url);
}