1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/ext/websocket
Divy Srivastava 824cb485c5
perf(ext/websocket): skip Events constructor checks (#16365)
WebSocket internal events can bypass Event's webidl checks and
`ReflectDefineProperty` on the object value. Note, this intentionally
makes websocket events `isTrusted` configurable (not spec-compliant)
which hurts performance a lot.

Before:
```
Msg/sec: 167627.750000
Msg/sec: 168239.250000
Msg/sec: 169690.000000
```

After:
```
Msg/sec: 191065.500000
Msg/sec: 194745.250000
Msg/sec: 194746.000000
```
2022-12-01 20:05:32 +05:30
..
01_websocket.js perf(ext/websocket): skip Events constructor checks (#16365) 2022-12-01 20:05:32 +05:30
02_websocketstream.js revert 9ea0ce6198 (#16501) 2022-11-01 16:06:06 +01:00
Cargo.toml chore: forward v1.28.3 release commit to main (#16884) 2022-12-01 22:46:27 +09:00
lib.deno_websocket.d.ts docs: add permission tags to JSDocs (#15541) 2022-08-23 10:57:01 +10:00
lib.rs Revert "fix(ext/websocket): make try_send ops infallible (#16454)" (#16743) 2022-11-21 16:23:47 +01: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