AuthAttempt Event
Fires when a connected client makes an authentication attempt.
Syntax
typedef struct { __int64 ConnectionID; String Username; String Password; bool Allow; } TsbxWebSocketServerAuthAttemptEventParams; typedef void __fastcall (__closure *TsbxWebSocketServerAuthAttemptEvent)(System::TObject* Sender, TsbxWebSocketServerAuthAttemptEventParams *e); __property TsbxWebSocketServerAuthAttemptEvent OnAuthAttempt = { read=FOnAuthAttempt, write=FOnAuthAttempt };
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.