mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 05:30:05 +00:00
优化 Websocket 连接
This commit is contained in:
@@ -111,7 +111,7 @@
|
||||
}
|
||||
}
|
||||
})
|
||||
const ws = new WebSocket('ws://localhost:8080/ws');
|
||||
const ws = new WebSocket('{{if eq .Domain "localhost"}}ws{{else}}wss{{end}}://{{.Domain}}/ws');
|
||||
ws.onopen = function (evt) {
|
||||
$.suiAlert({
|
||||
title: '实时通道建立',
|
||||
|
||||
Reference in New Issue
Block a user