ui: Add Websocket prefix settings (#449)

This commit is contained in:
yzx_28 authored and GitHub committed 2022-10-24 02:45:27 +08:00
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 }));