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.
Username and Password contain the professed credentials.