mirror of
https://github.com/denoland/deno.git
synced 2025-01-05 13:59:01 -05:00
0cd0a9d5ed
Use u16 to represent the kind of event (0 - 6) & event code > 6 is treated as the close code. This way we can represent all events + the close code in a single JS number. This is safe because (as per RFC 6455) close code from 0-999 are reserved & not used. | name | avg msg/sec/core | | --- | --- | | deno_main | `127820.750000` | | deno #18506 | `140079.000000` | | deno #18506 + this | `150104.250000` | |
||
---|---|---|
.. | ||
01_websocket.js | ||
02_websocketstream.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