Page MenuHomeGitPull.it

class JX.WebSocket
Javelin Documentation ()

Wraps a WebSocket.

Tasks

Builtin Events

  • static listen(type, callback) โ€” Listen for events emitted by this object instance. You can also use the static flavor of this method to listen to events emitted by any instance of this object.

Other Methods

Methods

static listen(type, callback)
Inherited

JX.Base

Listen for events emitted by this object instance. You can also use the static flavor of this method to listen to events emitted by any instance of this object.

See also JX.Stratcom.listen().

Parameters
type
callback
This method is not documented.
Parameters
uri

private _reconnect()

Called when the connection is closed.

You can return true to prevent the socket from reconnecting.

Defined
lib/WebSocket.js:14
Extends
JX.Base