onConnect (event)
Reports an accepted connection.
Syntax
- (void)onConnect:(long long)connectionID :(NSString*)remoteAddress :(int)remotePort;
func onConnect(_ connectionID: Int64, _ remoteAddress: String, _ remotePort: Int32)
Remarks
The class fires this event to report that a new connection has been established. ConnectionId indicates the unique ID assigned to this connection. The same ID will be supplied to any other events related to this connection, such as GetRequest or AuthAttempt.