aboutsummaryrefslogtreecommitdiff
path: root/docs/api/streams.md
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-06-05 04:31:13 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-06-05 04:31:13 -0700
commitc87d65856c06a03a2470fdc1bd48bc4042dadaec (patch)
treed85b47e7d4df571f56adffeab6b7075b60d4bccb /docs/api/streams.md
parent9b996e702ef32d03b01b745642292e7a747485fa (diff)
downloadbun-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