mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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
@@ -11,7 +11,7 @@ const page = new NamedPage('record_main', async () => {
|
||||
import('diff-dom'),
|
||||
]);
|
||||
|
||||
const sock = new WebSocket(UiContext.socketUrl);
|
||||
const sock = new WebSocket(UiContext.ws_prefix + UiContext.socketUrl);
|
||||
const dd = new DiffDOM();
|
||||
|
||||
sock.onopen = () => sock.send(JSON.stringify({ rids: UiContext.rids }));
|
||||
|
||||
Reference in new issue
Block a user