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

@@ -1,9 +1,9 @@
import { NamedPage } from 'vj/misc/Page';
const page = new NamedPage('manage_dashboard', async () => {
const { default: SockJs } = await import('../components/socket');
const { default: WebSocket } = await import('../components/socket');
const sock = new SockJs('/manage/check-conn');
const sock = new WebSocket('/manage/check-conn');
sock.onopen = () => {
$('<blockquote class="blue"><p>Connection opened.</p></blockquote>').appendTo('#messages');
};