The RelayedHttpListenerResponse doesn't contain a CancellationToken nor does RelayedHttpListenerContext or RelayedHttpListenerRequest.
This means that if a client application connected to the relay disconnects, the relay server isn't informed about the disconnect. Attempting to write a response back to the stream you receive a WebSockets exception.
The
RelayedHttpListenerResponsedoesn't contain aCancellationTokennor doesRelayedHttpListenerContextorRelayedHttpListenerRequest.This means that if a client application connected to the relay disconnects, the relay server isn't informed about the disconnect. Attempting to write a response back to the stream you receive a WebSockets exception.