status bar implementation
This commit is contained in:
1 parent
9888ae6ba7
commit
3b0dd95a7b
2 files changed
+28
-2
No files matched your search
@@ -12,6 +12,7 @@ function newSystemEventHandler () {
|
||||
let WEB_SOCKETS_CONNECTION
|
||||
|
||||
let thisObject = {
|
||||
isConnected: isConnected,
|
||||
initialize: initialize,
|
||||
physics: physics,
|
||||
createEventHandler: createEventHandler,
|
||||
@@ -30,6 +31,14 @@ function newSystemEventHandler () {
|
||||
setuptWebSockets(callBackFunction)
|
||||
}
|
||||
|
||||
function isConnected () {
|
||||
if (WEB_SOCKETS_CONNECTION.readyState === 1) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
function sendCommand (command, responseCallBack, eventsCallBack) {
|
||||
if (command.action === 'listenToEvent') {
|
||||
let key
|
||||
|
||||
Reference in new issue
Block a user