Remove debug js for mqtt messasges to make it easier #424

This commit is contained in:
Kendrick Chan 2020-07-16 14:23:42 +08:00
parent 1b2ea61891
commit 718125f2bf

View file

@ -60,7 +60,7 @@ class MapEventHandler {
onMessage(msg) { onMessage(msg) {
// console.log(msg); // console.log(msg);
console.log('received message'); // console.log('received message');
var channel = msg.destinationName; var channel = msg.destinationName;
var chan_split = channel.split('/'); var chan_split = channel.split('/');
@ -78,7 +78,7 @@ class MapEventHandler {
} }
handleRider(chan_split, payload) { handleRider(chan_split, payload) {
console.log("rider message"); // console.log("rider message");
switch (chan_split[2]) { switch (chan_split[2]) {
case "availability": case "availability":
console.log("got availability for rider " + chan_split[1] + " - " + payload); console.log("got availability for rider " + chan_split[1] + " - " + payload);