const host = process.argv[2]; const ws = new WebSocket(host); ws.onmessage = message => { if (message.data === "hello websocket") { ws.send("hello"); } else if (message.data === "timeout") { setTimeout(() => { ws.send("close"); }, 300); } }; blic?h=fix-s-island-fallback' type='application/atom+xml'/>
![]() |
index : astro | |
Unnamed repository; edit this file 'description' to name the repository. |
aboutsummaryrefslogtreecommitdiff |