Support multiple preview from same http port

This commit is contained in:
Igor Shymko
2016-12-11 18:44:45 +02:00
parent 73af604f1d
commit 73d90fab7c
3 changed files with 113 additions and 48 deletions

View File

@@ -12,6 +12,7 @@
var socket = new WebSocket("ws://${WS_HOST}:${WS_PORT}");
socket.onopen = function() {
console.log("Connection established.");
socket.send("MDPM-Register-UUID: ${MD_UUID}");
};
socket.onclose = function(event) {
if (event.wasClean) {