TsgcWebSocketProxyServer › Methods
Public methods grouped by purpose, followed by the full alphabetical list.
| Name | Description |
|---|---|
| Start | Starts the proxy server from a secondary thread so the calling thread is not blocked while bindings are opened. |
| Stop | Stops the proxy server from a secondary thread so the calling thread is not blocked while connections are closed. |
| ReStart | Stops and then restarts the proxy server from a secondary thread, useful after changing bindings, ports, or the upstream target at runtime. |
| DisconnectAll | Disconnects every active WebSocket client and its paired upstream TCP link while keeping the proxy listening for new connections. |
| Name | Description |
|---|---|
| Broadcast | Sends the same message to all connected WebSocket clients on the proxy, optionally filtered by channel, protocol, or connection GUID list. |
| WriteData | Sends a message to a single WebSocket client on the proxy identified by its connection GUID. |
| Ping | Sends a WebSocket ping frame to every connected client on the browser-facing side of the proxy. |
| Name | Description |
|---|---|
| Broadcast | Sends the same message to all connected WebSocket clients on the proxy, optionally filtered by channel, protocol, or connection GUID list. |
| DisconnectAll | Disconnects every active WebSocket client and its paired upstream TCP link while keeping the proxy listening for new connections. |
| Ping | Sends a WebSocket ping frame to every connected client on the browser-facing side of the proxy. |
| ReStart | Stops and then restarts the proxy server from a secondary thread, useful after changing bindings, ports, or the upstream target at runtime. |
| Start | Starts the proxy server from a secondary thread so the calling thread is not blocked while bindings are opened. |
| Stop | Stops the proxy server from a secondary thread so the calling thread is not blocked while connections are closed. |
| WriteData | Sends a message to a single WebSocket client on the proxy identified by its connection GUID. |