TsgcWebSocketHTTPServer › Methods
Public methods grouped by purpose, followed by the full alphabetical list.
| Name | Description |
|---|---|
| Start | Starts the HTTP server from a secondary thread so the calling thread is not blocked while bindings are opened. |
| Stop | Stops the HTTP server from a secondary thread so the calling thread is not blocked while connections are closed. |
| ReStart | Stops and then restarts the server from a secondary thread, useful after changing bindings or ports at runtime. |
| DisconnectAll | Disconnects every active client connection while keeping the server listening for new connections. |
| Name | Description |
|---|---|
| Broadcast | Sends the same WebSocket message to all connected clients, optionally filtered by channel, protocol, or connection GUID list. |
| WriteData | Sends a WebSocket message to a single client identified by its connection GUID. |
| Ping | Sends a WebSocket ping frame to every connected WebSocket client. |
| Name | Description |
|---|---|
| PushPromiseAddPreLoadLinks | Registers an HTTP/2 Server Push rule that preloads a set of related resources whenever a matching request path is served. |
| PushPromiseRemovePreLoadLinks | Removes the HTTP/2 Server Push rule previously registered for the given request path. |
| Name | Description |
|---|---|
| Broadcast | Sends the same WebSocket message to all connected clients, optionally filtered by channel, protocol, or connection GUID list. |
| DisconnectAll | Disconnects every active client connection while keeping the server listening for new connections. |
| Ping | Sends a WebSocket ping frame to every connected WebSocket client. |
| PushPromiseAddPreLoadLinks | Registers an HTTP/2 Server Push rule that preloads a set of related resources whenever a matching request path is served. |
| PushPromiseRemovePreLoadLinks | Removes the HTTP/2 Server Push rule previously registered for the given request path. |
| ReStart | Stops and then restarts the server from a secondary thread, useful after changing bindings or ports at runtime. |
| Start | Starts the HTTP server from a secondary thread so the calling thread is not blocked while bindings are opened. |
| Stop | Stops the HTTP server from a secondary thread so the calling thread is not blocked while connections are closed. |
| WriteData | Sends a WebSocket message to a single client identified by its connection GUID. |