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
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.
onCloseRemote
()
private
Callback for when the websocket is closed
onOpenRemote
()
private
The remote logging connection has been created
send
Send data to the remote logging application
_channel
String
private
The current channel for remote logging
connected
Boolean
private
If the web socket connection is available for sending
connecting
Boolean
private
If the web socket connection is trying to connect
socket
WebSocket | MozWebSocket
private
The Web socket connection for remote logging
socketBuffer
Array
private
The collection of events to buffer while connecting