TsgcWebSocketProxyServer › Methods

TsgcWebSocketProxyServer Methods

Public methods grouped by purpose, followed by the full alphabetical list.

Connection

NameDescription
StartStarts the proxy server from a secondary thread so the calling thread is not blocked while bindings are opened.
StopStops the proxy server from a secondary thread so the calling thread is not blocked while connections are closed.
ReStartStops and then restarts the proxy server from a secondary thread, useful after changing bindings, ports, or the upstream target at runtime.
DisconnectAllDisconnects every active WebSocket client and its paired upstream TCP link while keeping the proxy listening for new connections.

Messaging

NameDescription
BroadcastSends the same message to all connected WebSocket clients on the proxy, optionally filtered by channel, protocol, or connection GUID list.
WriteDataSends a message to a single WebSocket client on the proxy identified by its connection GUID.
PingSends a WebSocket ping frame to every connected client on the browser-facing side of the proxy.

All Methods (alphabetical)

NameDescription
BroadcastSends the same message to all connected WebSocket clients on the proxy, optionally filtered by channel, protocol, or connection GUID list.
DisconnectAllDisconnects every active WebSocket client and its paired upstream TCP link while keeping the proxy listening for new connections.
PingSends a WebSocket ping frame to every connected client on the browser-facing side of the proxy.
ReStartStops and then restarts the proxy server from a secondary thread, useful after changing bindings, ports, or the upstream target at runtime.
StartStarts the proxy server from a secondary thread so the calling thread is not blocked while bindings are opened.
StopStops the proxy server from a secondary thread so the calling thread is not blocked while connections are closed.
WriteDataSends a message to a single WebSocket client on the proxy identified by its connection GUID.