mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
ui: Add Websocket prefix settings (#449)
This commit is contained in:
1 parent
39e3d057fa
commit
0c587d1786
11 files changed
+14
-10
No files matched your search
@@ -8,7 +8,7 @@ const page = new NamedPage('record_detail', async () => {
|
||||
import('diff-dom'),
|
||||
]);
|
||||
|
||||
const sock = new WebSocket(UiContext.socketUrl);
|
||||
const sock = new WebSocket(UiContext.ws_prefix + UiContext.socketUrl);
|
||||
const dd = new DiffDOM();
|
||||
sock.onmessage = (message) => {
|
||||
const msg = JSON.parse(message.data);
|
||||
|
||||
Reference in new issue
Block a user