[fix] Minor typo in _onTcpSocket