From 59dd9ca9d30a963bfa24d09dfef96a9213bb729a Mon Sep 17 00:00:00 2001 From: rollgotobed <35453778+rollgotobed@users.noreply.github.com> Date: Tue, 15 Feb 2022 23:26:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0web=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AB=AFws=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/client.js b/client/client.js index 8afbf8f..dadc448 100644 --- a/client/client.js +++ b/client/client.js @@ -309,7 +309,8 @@ function join(channel) { // to the new port (example: ':8080') // if you are reverse proxying, change 'wsPath' to the new location // (example: '/chat-ws') - var wsPath = ':6060'; +// var wsPath = ':6060'; + var wsPath = '/ws-chat';// 还是这样看起来舒服 ws = new WebSocket(protocol + '//' + document.domain + wsPath); }