>static Future&lt;RawSecureSocket&gt; secureServer(
    RawSocket socket, SecurityContext context,
    {StreamSubscription&lt;RawSocketEvent&gt; subscription,
    List&lt;int&gt; bufferedData,
    bool requestClientCertificate: false,
    bool requireClientCertificate: false,
    List&lt;String&gt; supportedProtocols}) {
  socket.readEventsEnabled = false;
  socket.writeEventsEnabled = false;
  return _RawSecureSocket.connect(socket.address, socket.remotePort,
      context: context,
      is_server: true,
