bug fixed
This commit is contained in:
1 parent
f7a1b62c36
commit
5b604fb011
4 files changed
+4
-4
No files matched your search
@@ -50,7 +50,7 @@
|
||||
console.log('Message Received: ' + message)
|
||||
}
|
||||
|
||||
let messageArray = message.split('|')
|
||||
let messageArray = message.split('|*|')
|
||||
|
||||
let origin = messageArray[0]
|
||||
let nonce = messageArray[1]
|
||||
|
||||
@@ -71,7 +71,7 @@ function newEventsServerClient () {
|
||||
commandsWaitingConfirmation.set(stringNonce, command)
|
||||
commandsSentByTimestamp.set(stringNonce, timestamp)
|
||||
|
||||
let messageToWebSocketServer = 'Web Browser|' + stringNonce + '|' + JSON.stringify(command)
|
||||
let messageToWebSocketServer = 'Web Browser' + '|*|' + stringNonce + '|*|' + JSON.stringify(command)
|
||||
WEB_SOCKETS_CONNECTION.send(messageToWebSocketServer)
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
}
|
||||
|
||||
if (WEB_SOCKETS_CLIENT.readyState === 1) { // 1 means connected and ready.
|
||||
WEB_SOCKETS_CLIENT.send("Task Server||" + JSON.stringify(command))
|
||||
WEB_SOCKETS_CLIENT.send("Task Server" + "|*|" + "|*|" + JSON.stringify(command))
|
||||
} else {
|
||||
console.log('[ERROR] Task Server -> Event Server Client -> setuptWebSockets -> sendCommand -> WebSocket message could not be sent because the connection was not ready. Message = ' + JSON.stringify(command))
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ function newAppLoader() {
|
||||
'CockpitSpace/Speedometer.js',
|
||||
'CockpitSpace/FullScreen.js',
|
||||
|
||||
'SystemEventHandler.js',
|
||||
'EventsServerClient.js',
|
||||
|
||||
'VideoRecorder.js',
|
||||
'Plotter.js',
|
||||
|
||||
Reference in new issue
Block a user