springroll.pbskids.LoggingService Class

Remote loggging of events

Constructor

springroll.pbskids.LoggingService

(
  • [remoteHost]
  • [remotePort=1025]
  • [channel]
)

Parameters:

  • [remoteHost] String optional

    The hostname or IP Address of the machine to log out the event data through WebSocket connection.

  • [remotePort=1025] String optional

    The port for remote logging using a WebSocket connection.

  • [channel] String optional

    The name of the channel to start session.

connect

(
  • host
  • [port=1025]
)

Defined in connect:65

Connect to the remote logging app

Parameters:

  • host String

    Either the IP address or host

  • [port=1025] Int optional

    The port to use for remote logging.

destroy

()

Defined in destroy:201

Don't use after this

onCloseRemote

()
private

Defined in onCloseRemote:128

Callback for when the websocket is closed

onOpenRemote

()
private

Defined in onOpenRemote:108

The remote logging connection has been created

send

(
  • type
  • data
)

Defined in send:170

Send data to the remote logging application

Parameters:

  • type String

    Either "event" or "session"

  • data Object

    The data object to send

_channel

String private

Defined in _channel:43

The current channel for remote logging

channel

String

Defined in channel:153

Set the current channel

connected

Boolean private

Defined in connected:22

If the web socket connection is available for sending

connecting

Boolean private

Defined in connecting:29

If the web socket connection is trying to connect

socket

WebSocket | MozWebSocket private

Defined in socket:15

The Web socket connection for remote logging

socketBuffer

Array private

Defined in socketBuffer:36

The collection of events to buffer while connecting