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).