From 59ec4a377aeeaa7ff0aec299e58e58d00242ab6b Mon Sep 17 00:00:00 2001 From: Takuro Goto Date: Sun, 22 Mar 2020 19:25:00 +0900 Subject: [PATCH 1/2] Use WebSocket Secure (wss) https site can't use non-secure WebSocket. We use WebSocket Secure protocol. --- js/tkm-initialize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tkm-initialize.js b/js/tkm-initialize.js index bb4c74e..f4f5695 100644 --- a/js/tkm-initialize.js +++ b/js/tkm-initialize.js @@ -16,7 +16,7 @@ Tkm.Sound.PASS = 8; Tkm.Sound.ROBBER = 9; Tkm.view = null; -Tkm.wsurl = 'ws://pure-dusk-5665.herokuapp.com'; +Tkm.wsurl = 'wss://pure-dusk-5665.herokuapp.com'; Tkm.ws = null; Tkm.roomIndex = null; Tkm.userList = []; @@ -118,4 +118,4 @@ Tkm.updateUserList = function () { } else { document.getElementById('play-user-list').innerHTML = html; } -} \ No newline at end of file +} From addffc4d9921bd827358ed7dd4c4c10a7f091c93 Mon Sep 17 00:00:00 2001 From: Takuro Goto Date: Sun, 22 Mar 2020 19:28:46 +0900 Subject: [PATCH 2/2] Use WebSocket secure (wss) --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index d96388f..28cf85d 100644 --- a/index.html +++ b/index.html @@ -223,7 +223,7 @@ - \ No newline at end of file +