core, ui, judge: rewrite http & ws layer (#352)

This commit is contained in:
undefined authored and GitHub committed 2022-05-03 20:22:12 +08:00
1 parent 3d2384f31a
commit 5af082eac8
37 files changed
+868 -889

No files matched your search

@@ -5,12 +5,12 @@ import tpl from 'vj/utils/tpl';
import getAvailableLangs from 'vj/utils/availableLangs';
const page = new NamedPage('record_main', async () => {
const [{ default: SockJs }, { DiffDOM }] = await Promise.all([
const [{ default: WebSocket }, { DiffDOM }] = await Promise.all([
import('../components/socket'),
import('diff-dom'),
]);
const sock = new SockJs(UiContext.socketUrl);
const sock = new WebSocket(UiContext.socketUrl);
const dd = new DiffDOM();
let firstLoad = true;