fix hardcoded host and port

This commit is contained in:
Seven Du authored and Travis Cross committed 2013-06-07 04:57:43 +00:00
1 parent 1ffd84b8c1
commit e50b06f49f
1 file changed
+3 -1
+3 -1
View File
@@ -471,7 +471,9 @@
<script type="text/javascript">
var socket = new WebSocket("ws://localhost:8086/socket", "websocket");
var port = document.location.port;
// var port = 8081; // for test
var socket = new WebSocket("ws://" + document.location.hostname + ":" + port + "/socket", "websocket");
try {
socket.onopen = function() {