Authentication
Client Authentication
Clients pass authentication data in the auth option when connecting:
Accessing Auth Data
The onConnected hook receives auth data via the client object:
See Also
- Lifecycle Hooks - authenticate hook for JWT validation
- TypeScript Types - AuthData and JwtClaims types