WebSocket constructor

WebSocket(
  1. String url, [
  2. dynamic protocols = const []
])

Implementation

factory WebSocket(String url, [dynamic protocols = const []]) =>
    WebSocket._(url, protocols ?? const []);