From 31b7631450f9dc26d6a3973ebd99a37742eb92f1 Mon Sep 17 00:00:00 2001 From: Exodus4D Date: Mon, 14 Nov 2016 21:44:12 +0100 Subject: [PATCH] WIP chatApp --- js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 57325ae..c4cad57 100644 --- a/js/app.js +++ b/js/app.js @@ -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 (){