Beignet API reference
Preparing search index...
@beignet/devtools
handleDevtoolsStreamRequest
Function handleDevtoolsStreamRequest
handleDevtoolsStreamRequest
(
req
:
Request
,
devtools
:
DevtoolsPort
,
options
?:
DevtoolsRouteAccessOptions
,
)
:
Promise
<
Response
>
Handle GET requests for a live Server-Sent Events stream.
The stream emits:
snapshot
with the current event buffer
event
when a new event is recorded
clear
when the buffer is cleared
Parameters
req
:
Request
devtools
:
DevtoolsPort
options
:
DevtoolsRouteAccessOptions
= {}
Returns
Promise
<
Response
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Beignet API reference
Loading...
Handle GET requests for a live Server-Sent Events stream.
The stream emits:
snapshotwith the current event buffereventwhen a new event is recordedclearwhen the buffer is cleared