SecondScreenClient Class
src/secondscreen-client.js:21
SecondScreenClient global entry object, accessible on the browser through window.secondscreenClient.noConflict().
Copyright (c) 2013 Infrared5
Methods
getDOMLogger
()
Object
Creates and returns a new instance of a visual DOM-based logger.
Returns:
DOMLogger with same API as log.Logger
on
-
eventType
-
fn
Override to glom onto event messages coming from Host.
Parameters:
-
eventType
StringType of event sent on the communication wire.
-
fn
FunctionDelegate assignment
send
-
actionName
-
args
Sends message over the wire to the connected Host instance.
Parameters:
-
actionName
StringEvent name to be associate with message notification on host.
-
args
...argsOptional arguments to send along as associated data with message.
setLogLevel
-
level
Define the log level for printing messages from the Host to the console.
Parameters:
-
level
IntEnumeration value from
versionStr
()
String
Returns the current version in prety print String