Skip to main content
Generated from the same public contract that feeds the Monaco editor. Declaration-marked deprecated compatibility methods are intentionally excluded. Do not edit this page manually.
This page contains 5 methods. Search the docs for an exact method name, or use this index:

sse.onDisconnect()

Register one callback for continue-and-notify disconnect policy. Invoked at most once in the same isolate. Shares the original execution deadline; no extra time is granted. continue skips it and cancel disposes the isolate. Registration after disconnect still notifies once while execution remains alive. Callback failures appear in diagnostics. CPU-bound code, a hard timeout or process failure can prevent notification; this is not a durable cleanup guarantee.

Signature

Example

sse.send()

Send text as SSE data. Await for backpressure, not acknowledgement by the receiver.

Signature

Example

sse.json()

Serialize JSON and send it as SSE data. Configured automatic terminal event names are reserved; null disables a terminal frame.

Signature

Example

sse.comment()

Send a multiline-safe comment. The host also emits automatic heartbeats.

Signature

Example

sse.remainingTime()

Remaining execution budget in milliseconds, never negative.

Signature

Example

Last modified on October 26, 2026