Home Manual Reference Source
import {ConnectionStatusListener} from 'zetapush-js/src/connection/connection-status.js'
public class | source

ConnectionStatusListener

Define life cycle connection methods

Method Summary

Public Methods
public

Callback fired when connection is broken

public

Callback fired when connection is closed

public

Callback fired when connection is established

public

Callback fired when an error occurs in connection to server step

public

Callback fired when connection will close

public

Callback fired when an error occurs in handshake step

public

Callback fired when a message is lost

public

Callback fired when negociation with server failed

public

Callback no server url avaibale

public

onSuccessfulHandshake(authentication: Object)

Callback fired when handshake step succeed

Public Methods

public onConnectionBroken() source

Callback fired when connection is broken

public onConnectionClosed() source

Callback fired when connection is closed

public onConnectionEstablished() source

Callback fired when connection is established

public onConnectionToServerFail(failure: Object) source

Callback fired when an error occurs in connection to server step

Params:

NameTypeAttributeDescription
failure Object

public onConnectionWillClose() source

Callback fired when connection will close

public onFailedHandshake(failure: Object) source

Callback fired when an error occurs in handshake step

Params:

NameTypeAttributeDescription
failure Object

public onMessageLost() source

Callback fired when a message is lost

public onNegotiationFailed(failure: Object) source

Callback fired when negociation with server failed

Params:

NameTypeAttributeDescription
failure Object

public onNoServerUrlAvailable() source

Callback no server url avaibale

public onSuccessfulHandshake(authentication: Object) source

Callback fired when handshake step succeed

Params:

NameTypeAttributeDescription
authentication Object