TsgcWebSocketServer_HTTPAPI › Methods
Public methods grouped by purpose, followed by the full alphabetical list.
| Name | Description |
|---|---|
| Start | Starts the HTTP.sys server from a secondary thread so the calling thread is not blocked while URL groups and bindings are registered. |
| Stop | Stops the HTTP.sys server from a secondary thread so the calling thread is not blocked while connections are closed and the request queue is released. |
| ReStart | Stops and then restarts the HTTP.sys server from a secondary thread, useful after changing bindings, ports or SSL certificates at runtime. |
| DisconnectAll | Disconnects every active WebSocket connection while keeping the HTTP.sys server listening for new connections. |
| Name | Description |
|---|---|
| Broadcast | Sends the same message to all connected clients, optionally filtered by channel, protocol, or connection GUID list. |
| WriteData | Sends a message to a single client identified by its connection GUID. |
| Ping | Sends a WebSocket ping frame to every connected client. |
| Name | Description |
|---|---|
| ShareList | Acquires a shared (read-only) lock on the internal connection list and returns it for concurrent enumeration. |
| UnShareList | Releases the shared (read-only) lock previously acquired by ShareList. |
| Name | Description |
|---|---|
| Broadcast | Sends the same message to all connected clients, optionally filtered by channel, protocol, or connection GUID list. |
| DisconnectAll | Disconnects every active WebSocket connection while keeping the HTTP.sys server listening for new connections. |
| Ping | Sends a WebSocket ping frame to every connected client. |
| ReStart | Stops and then restarts the HTTP.sys server from a secondary thread, useful after changing bindings, ports or SSL certificates at runtime. |
| ShareList | Acquires a shared (read-only) lock on the internal connection list and returns it for concurrent enumeration. |
| Start | Starts the HTTP.sys server from a secondary thread so the calling thread is not blocked while URL groups and bindings are registered. |
| Stop | Stops the HTTP.sys server from a secondary thread so the calling thread is not blocked while connections are closed and the request queue is released. |
| UnShareList | Releases the shared (read-only) lock previously acquired by ShareList. |
| WriteData | Sends a message to a single client identified by its connection GUID. |