Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/capi/deps/std/http.ts>ServerSentEventTargetOptions

[WIP] A framework for crafting interactions with Substrate chains
Latest
interface ServerSentEventTargetOptions
import { type ServerSentEventTargetOptions } from "https://deno.land/x/capi@v0.1.1-beta.1/deps/std/http.ts";

Properties

optional
keepAlive: boolean | number

Keep client connections alive by sending a comment event to the client at a specified interval. If true, then it polls every 30000 milliseconds (30 seconds). If set to a number, then it polls that number of milliseconds. The feature is disabled if set to false. It defaults to false.