AuthAttempt Event
Fires when a connected client makes an authentication attempt.
Syntax
public open class DefaultWebsocketserverEventListener : WebsocketserverEventListener { ... public override fun authAttempt(e: WebsocketserverAuthAttemptEvent) {} ... } public class WebsocketserverAuthAttemptEvent { val connectionID: Long val username: String? val password: String? var allow: Boolean }
Remarks
The component 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.