import {ConnectionStatusListener} from 'zetapush-js/src/connection/connection-status.js'
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 |
onConnectionToServerFail(failure: Object) Callback fired when an error occurs in connection to server step |
|
public |
Callback fired when connection will close |
|
public |
onFailedHandshake(failure: Object) Callback fired when an error occurs in handshake step |
|
public |
Callback fired when a message is lost |
|
public |
onNegotiationFailed(failure: Object) 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 onConnectionToServerFail(failure: Object) source
Callback fired when an error occurs in connection to server step
Params:
Name | Type | Attribute | Description |
failure | Object |
public onFailedHandshake(failure: Object) source
Callback fired when an error occurs in handshake step
Params:
Name | Type | Attribute | Description |
failure | Object |