Skip to content

Commit

Permalink
Added alive channel setting. (#4509)
Browse files Browse the repository at this point in the history
  • Loading branch information
solderzzc authored Aug 21, 2016
1 parent 354fcd8 commit f3dad36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion map-chat/javascript/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ var topic = urlHashTopic ? urlHashTopic : "main";

function initialiseEventBus(){
window.client = mqtt.connect('ws://test.mosca.io'); // you add a ws:// url here
client.subscribe("mqtt/demo");
client.subscribe("pgomapcatch/#");

client.on("message", function(topic, payload) {
//alert([topic, payload].join(": "));
//client.end();
Materialize.toast(payload, 2000);
displayMessageOnMap(payload);
});

Expand Down

1 comment on commit f3dad36

@Jasperrr91
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stupidest idea ever.

Please sign in to comment.