onAuthAttempt (event)
Fires when a connected client makes an authentication attempt.
Syntax
- (void)onAuthAttempt:(long long)connectionID :(NSString*)username :(NSString*)password :(int*)allow;
func onAuthAttempt(_ connectionID: Int64, _ username: String, _ password: String, _ allow: inout Int32)
Remarks
The class fires this event whenever a client attempts to authenticate itself. Use the Allow parameter to let the client through.
ConnectionID contains the unique session identifier for that client, and Username and Password contain the professed credentials.