Commit af59ccb3 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/websocket' into 'main'

use wss

See merge request mycard/Neos!111
parents 0baeeb88 4f0ef74c
...@@ -36,7 +36,7 @@ export default function (action: socketAction) { ...@@ -36,7 +36,7 @@ export default function (action: socketAction) {
case socketCmd.CONNECT: { case socketCmd.CONNECT: {
const info = action.initInfo; const info = action.initInfo;
if (info) { if (info) {
ws = new WebSocket("ws://" + info.ip); ws = new WebSocket("wss://" + info.ip);
ws.onopen = () => { ws.onopen = () => {
handleSocketOpen(ws, info.ip, info.player, info.passWd); handleSocketOpen(ws, info.ip, info.player, info.passWd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment