The username that the connection is trying to link to.
Additional information about the connection trying to link to the user. info.isNewUser -- Whether this username belongs to a user already known to the server (false) or a new user that will be created if linking succeeds (true). info.auth -- An authentication token as a string, if provided by the client. That can be used to verify the authentication of the user. For example a JWT token.
A reject callback that, if invoked, will reject the linking to the user with the provided reason.
A method that can be invoked to indicate that the authentication process is asynchronous. The first argument to this function is an async handler function. The server will wait for the asynchronous handler to resolve or reject. You can reject the linking to the user at any time by calling the reject callback or rejecting from the handler. If the async handler does not resolve or reject within the timeout, the connection will be rejected. The timeout is set by the 'authTimeoutMilliseconds' property of the server.
Note: If the 'markAsync' function is not invoked, the server will assume that the authentication process is synchronous.
This event is emitted once the server has closed.
This event is emitted every time a user has joined.
The username of the user that joined.
This event is emitted every time a user has left.
The username of the user that left.
This event is emitted every time a connection has linked to a user.
The username of the user that was linked to a connection.
This event is emitted once the server has started listening and is ready to accept connections.
The port at which the server started listening.
This event is emitted every time a user sends a message to the server.
The username of the user that send the message.
The content of the message that the user sent.
This event is emitted every time a connection has unlinked from its user.
The username of the user that was unlinked from its connection.
This event is emitted before a connection tries to link to a user.