eSeGeCe
software
When using the Indy WebSocket server for TCP Connections, by default the OnConnect event is only fired after the first message is received because there is no way to filter if the connection is plain TCP, websocket, HTTP... in cases where all connections are expected to be TCP, now you can handle the event OnTCPConnect and set the transport to trpTCP. When doing this action, the event OnConnect will be fired automatically (without waiting to receive the first message).
procedure OnTCPConnectEvent(aConnection: TsgcWSConnection; var Accept: Boolean); begin aConnection.Transport := trpTCP; Accept := True; end;
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.