onLogin

abstract fun onLogin(responseHandler: GameLoginResponseHandler<R>, block: LoginBlock<AuthenticationType<*>>)

The onLogin function is triggered whenever a login request is received by the library, and it passes all the initial validation necessary. The server is responsible for doing most of the validation here, but preliminary things like max number of connections and session ids will have been pre-checked by us.

Parameters

responseHandler

the handler used to write a successful or failed login response, depending on the decisions made by the server.

block

the login block sent by the client, containing all the information the server will need.