deno: New WS api blocking after closing connection
import { delay } from "https://deno.land/std@0.65.0/async/delay.ts";
const ws = new WebSocket("wss://irc-ws.chat.twitch.tv:443");
ws.onopen = () => console.log("connection opened");
ws.onclose = () => console.log("conn closed");
await delay(5000);
ws.close();
Issue is when closing a WS connection something appears to be stuck in the event loop (just a guess), preventing the program from terminating. To replicate this issue, just create a ws connection and close it.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 16 (11 by maintainers)
@Soremwar thanks for checking, can you add some small test case?