HoloPlayCore.Client
Last updated
Was this helpful?
Last updated
Was this helpful?
A class representing a client that communicates with HoloPlay Service.
initCallback
function optional; a function that triggers when response is received.
errCallback
function optional; a function that triggers when there is a connection error.
closeCallback
function optional; a function that triggers when the socket is closed.
debug
boolean optional; default is false
. If true, there will be logging messages in console.
appId
string optional; see for more details.
isGreedy
boolean optional; see for more details.
oncloseBehavior
string optional; see for more details.
Returns information of the connected Looking Glass devices, in the format of .
Example
timeoutSecs
integer optional, default is 60
seconds
Returns a Promise.
Example
Manually disconnects from the web socket.
Example
Send a object over the websocket to the HoloPlay Service.
msg
object