WIP chatApp

This commit is contained in:
Exodus4D
2016-11-14 21:44:12 +01:00
parent 22ed9caa97
commit 31b7631450

View File

@@ -1,6 +1,6 @@
var domain = location.host.replace('www.','');
var domain = location.host;
var workerProtocol = (window.location.protocol === 'https:') ? 'wss:' : 'ws:';
var workerUri = workerProtocol + '//' + domain + ':8080';
var workerUri = workerProtocol + '//' + domain + '/ws/chat';
window.onload = function (){