WS host/port injection fixes #14

This commit is contained in:
Igor Shymko
2016-12-05 13:19:43 +02:00
parent c9c9bfb449
commit c415d7e4a7
2 changed files with 12 additions and 8 deletions

View File

@@ -13,7 +13,7 @@
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
(function($, undefined) {
var socket = new WebSocket("ws://localhost:7379");
var socket = new WebSocket("ws://${WS_HOST}:${WS_PORT}");
socket.onopen = function() {
console.log("Connection established.");
};