Method EnableWebSockets(string, int, TimeSpan?, bool, string?, string?)
Declares the listener on host:port for a transport that serves WebSocket
upgrades, with its TLS settings when this is the listener's first registration, and its keep-alive. Every
listener accepts upgrades (UseWebSockets() is part of every pipeline: endpoints mapped onto a running
listener, a SignalR hub, cannot add it later, and it touches only upgrade requests). The keep-alive is read
when the listener is built; on a running listener the call changes nothing.
public void EnableWebSockets(string host, int port, TimeSpan? keepAliveInterval = null, bool ssl = false, string? sslCertPath = null, string? sslCertPassword = null)