Class jsf.push-Socket
Defined in: jsf.js.
Constructor Attributes | Constructor Name and Description |
---|---|
<inner> |
jsf.push-Socket(channelToken, url, channel)
Creates a reconnecting web socket.
|
Class Detail
<inner>
jsf.push-Socket(channelToken, url, channel)
Creates a reconnecting web socket. When the web socket successfully connects on first attempt, then it will
automatically reconnect on timeout with cumulative intervals of 500ms with a maximum of 25 attempts (~3 minutes).
The
onclose
function will be called with the error code of the last attempt.
- Parameters:
- {string} channelToken
- the channel token associated with this websocket connection
- {string} url
- The URL of the web socket
- {string} channel
- The name of the web socket channel.