TMS FNC WebSocket Server guides
TTMSFNCWebSocketServer accepts WebSocket clients and exchanges text and binary
messages with them. You choose a port and path, set the server active, and
react to clients through its events; the broadcast and selector-based send
methods push messages to all clients or to the ones you pick. These
task-oriented chapters cover running the server, messaging, per-client data,
keeping connections healthy, and serving over TLS.
New to the component? Start with Get started for the shortest working path, then return here for depth.
Chapters
| Chapter | Covers |
|---|---|
| Running a server | Active, Port, BindingIP, PathName, accepting connections in OnAllow, the lifecycle events, and the event thread (AutoSyncEvents). |
| Broadcasting messages | BroadcastMessage/BroadcastData, selector-based SendMessageTo/SendDataTo, relaying between clients, split frames, and DisconnectClient. |
| Custom connection data | UserData and OwnsUserData, storing client-supplied or server-assigned data, and routing messages with it. |
| Connection health | Automatic and manual pong replies, pinging clients, close frames, and dropping unresponsive clients. |
| Secure connections | UseSSL, certificate files, PFX conversion, exporting a Windows Server certificate, and custom IO handlers for OpenSSL 3.x. |