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