API Docs for: 0.1.0
Show:

vortexClient Class

Module: vortex

Vortex client

Constructor

vortexClient

(
  • browser
  • config
)

Parameters:

  • browser VortexBrowser

    Crossbrowser library

  • config Object

    Configuration

Methods

_log

(
  • msg
)
private

Log message

Parameters:

  • msg Object

    Message

_onClose

(
  • event
)
private

Close event handler

Parameters:

  • event Object

    DOMEvent

_onError

(
  • event
)
private

Error event handler

Parameters:

  • event Object

    DOMEvent

_onMessage

(
  • event
)
private

Message event handler

Parameters:

  • event Object

    DOMEvent

_onOpen

(
  • event
)
private

Open event handler

Parameters:

  • event Object

    DOMEvent

connect

()

Connect

disconnect

()

Disconnect

isConnected

() Boolean

Returns the connection status

Returns:

Boolean: True when a connection is open

Properties

_browser

VortexBrowser private

Crossbrowser library

_config

Object private

Configuration object

_webSocket

VortexWebSocket private

WebSocket interface