1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-05 13:59:01 -05:00
denoland-deno/ext/websocket
Divy Srivastava 0cd0a9d5ed perf(ext/websocket): efficient event kind serialization (#18509)
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` |
2023-03-31 11:43:20 -06:00
..
01_websocket.js perf(ext/websocket): efficient event kind serialization (#18509) 2023-03-31 11:43:20 -06:00
02_websocketstream.js perf(ext/websocket): efficient event kind serialization (#18509) 2023-03-31 11:43:20 -06:00
Cargo.toml 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
lib.deno_websocket.d.ts chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
lib.rs perf(ext/websocket): efficient event kind serialization (#18509) 2023-03-31 11:43:20 -06:00
README.md Rename extensions/ directory to ext/ (#11643) 2021-08-11 12:27:05 +02:00

deno_websocket

This op crate implements the websocket functions of Deno.

Spec: https://html.spec.whatwg.org/multipage/web-sockets.html