onConnect (event)
This event is fired when a remote connection has been established.
Syntax
- (void)onConnect:(long long)connectionID :(NSString*)remoteAddress :(int)remotePort;
func onConnect(_ connectionID: Int64, _ remoteAddress: String, _ remotePort: Int32)
Remarks
ConnectionID contains a session identifier, and RemoteAddress specifies the client's IP address.