diff options
author | 2023-06-05 04:31:13 -0700 | |
---|---|---|
committer | 2023-06-05 04:31:13 -0700 | |
commit | c87d65856c06a03a2470fdc1bd48bc4042dadaec (patch) | |
tree | d85b47e7d4df571f56adffeab6b7075b60d4bccb /docs/api/streams.md | |
parent | 9b996e702ef32d03b01b745642292e7a747485fa (diff) | |
download | bun-c87d65856c06a03a2470fdc1bd48bc4042dadaec.tar.gz bun-c87d65856c06a03a2470fdc1bd48bc4042dadaec.tar.zst bun-c87d65856c06a03a2470fdc1bd48bc4042dadaec.zip |
[Inspector] Introduce `inspector: true` in Bun.serve()
This exposes the WebKit inspector debugger protocol over WebSockets at the endpoint `/bun:inspect` when `Bun.serve()`.
To enable, pass:
```js
Bun.serve({inspector: true, development: true, fetch(req){ /* rest of params *... });
```
Both `development` and `inspector` must be true, as this is very security sensitive to expose publicly.
Diffstat (limited to 'docs/api/streams.md')
0 files changed, 0 insertions, 0 deletions