SocketConnectionHelper

SocketConnectionHelper

new SocketConnectionHelper()

Description:
  • SocketConnectionHelper Object

Source:

Methods

(static) emit(eventName, data)

Description:
  • Method for emitting an event over websockets

Source:
Parameters:
Name Type Description
eventName

Name of the event

data

The payload

(static) isConnected()

Description:
  • Method to check if connection was established

Source:

(static) on(eventName, callback)

Description:
  • Method for setting up socket event listener

Source:
Parameters:
Name Type Description
eventName

Name of the event

callback

(static) onAfterConnected(callback)

Description:
  • Method to call after websocket connection is established

Source:
Parameters:
Name Type Description
callback