vortexWebSocket Class
Websocket interface
Constructor
vortexWebSocket
(
-
browser
-
config
Parameters:
-
browser
VortexBrowserCrossbrowser library
-
config
ObjectConfiguration
Item Index
Methods
Methods
_log
(
private
-
msg
Log message
Parameters:
-
msg
ObjectMessage
connect
()
Connect WebSocket
disconnect
()
Disconnect WebSocket
isConnected
()
Boolean
Returns the connection status
Returns:
Boolean:
True when a connection is open
send
(
-
data
Send a message
Parameters:
-
data
StringMessage
Properties
_browser
VortexBrowser
private
Crossbrowser library
_config
Object
private
Configuration object
_connected
Boolean
private
Indicates that a connection is open
_enabled
Boolean
private
Indicates that the WebSocket feature is enabled in the browser
_socket
DOMWebSocket
private
_url
String
private
WebSocket target url