On this page

Options for the default backend.

Type:string

A custom client.

Type:number | ListenOptions | ((server: ServerLazyCompilationBackend) => void)

Specifies where to listen to from the server.

Type:"http" | "https"

Specifies the protocol the client should use to connect to the server.

Type:ServerOptions<typeof IncomingMessage, typeof ServerResponse> | ServerOptions<typeof IncomingMessage, typeof ServerResponse> | (() => ServerLazyCompilationBackend)

Specifies how to create the server handling the EventSource requests.