Class: OnDisconnect

OnDisconnect

Useful class to write and remove data if user lost connection with server. It can be a connection problem or an app crash. Registered actions are executed only once. Register again your actions if you need it.

Managing presence is a common use case. You can prevent other friends if you are connected or not.

Set OnDisconnect actions as soon as possible to catch early connection failure.

Objects of this class are not intended to be constructed directly, they are rather expected to be built using the Webcom#onDisconnect method.

Methods

show
deprecated