mirror of
https://github.com/denoland/deno.git
synced 2025-02-08 23:31:24 -05:00
0e72129da2
It is possible that the WebSocket is already closed when we try to close it with `WebSocket#close` or in the `error` or `close` events. Currently this leads to an uncatchable promise rejection. This changes this so that closing an already closed WebSocket is a noop. |
||
---|---|---|
.. | ||
01_websocket.js | ||
Cargo.toml | ||
lib.deno_websocket.d.ts | ||
lib.rs | ||
README.md |
deno_websocket
This op crate implements the websocket functions of Deno.
Spec: https://html.spec.whatwg.org/multipage/web-sockets.html