login

abstract fun login(signature: Signature, complete: (Boolean) -> Unit)

Login against Enmasse to associate votes to signature session from Identify. This should be called after WebSocket authentication when WebSocket is ready to receive messages or requests.

Obtain a session signature from an Identify instance.

Parameters

signature

The session signature for the login operation.

complete

Invoked when the login process is completed. Returns a boolean value of either true if login succeeded or false if it failed.

Throws

when user id field of Signature is not a valid UUID.