支持 js websocket

This commit is contained in:
dragon
2025-11-19 15:56:32 +08:00
parent 268f21c2af
commit 043b00bbb7
25 changed files with 617 additions and 69 deletions

View File

@@ -0,0 +1,18 @@
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
console.log('boot');
(async () => {
console.log(0);
await sleep(1000);
console.log(1000);
await sleep(1000);
console.log(2000);
await sleep(1000);
console.log(3000);
await sleep(1000);
console.log(4000);
await sleep(1000);
console.log(5000);
})();
console.log('boot end');