Skip to content

Commit

Permalink
start working on #282 Yay!
Browse files Browse the repository at this point in the history
  • Loading branch information
LNFWebsite authored May 11, 2017
1 parent d7ea3a3 commit 38fce43
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -825,3 +825,16 @@ document.addEventListener("drop", function(event) {
document.addEventListener("dragover", function(event) {
event.preventDefault();
});

function stationLoaded() {
var socket = io();
socket.emit("msg", "testmessage");
}

function station(server) {
$.ajax({
url: "http://" + server + "socket.io/socket.io.js",
dataType: "script",
success: stationLoaded
});
}

0 comments on commit 38fce43

Please sign in to comment.