TsgcWebSocketServer › Methods › Start
Starts the server from a secondary thread so the calling thread is not blocked while bindings are opened.
public void Start();
Start spawns an internal worker thread that sets Active := True, so the caller (typically the main UI thread) returns immediately instead of freezing while the server binds to its configured ports. The server is not guaranteed to be listening when Start returns; subscribe to OnStartup to be notified once the server is accepting connections. Set Port and any Bindings before calling Start. Use the Active property directly if you prefer a synchronous start that runs on the calling thread.
oServer = new TsgcWebSocketServer();
oServer.Port = 80;
oServer.Start();