nOptions-class.html">CompressionOptions</a>. If none is specified
then the <a href="dart-io/WebSocket-class.html">WebSocket</a> will be created with the default <a href="dart-io/CompressionOptions-class.html">CompressionOptions</a>.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">static Future&lt;WebSocket&gt; upgrade(HttpRequest request,
    {protocolSelector(List&lt;String&