diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index a448ed13..89b0fe84 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -677,9 +677,6 @@
- - -

@@ -688,6 +685,7 @@
+
-
+
@@ -379,6 +379,17 @@ if (typeof data == 'string') { try { data = JSON.parse(data); } catch (ex) { console.log('Unable to parse', data); return; } //console.log('RECV', data); + + // Handle control command + if (data.ctrlChannel == '102938') { + switch (data.type) { + case 'ping': { send({ ctrlChannel: '102938', type: 'pong' }); break; } + case 'pong': { break; } + } + return; + } + + // Handle command switch (data.action) { case 'chat': { displayRemote(data.msg); updateRemoteOutText(false); break; } // Incoming chat message. case 'outtext': { updateRemoteOutText(data.value); break; }