TsgcWebSocketServer › Methods

TsgcWebSocketServer Methods

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

Connection

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

Messaging

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

All Methods (alphabetical)

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