ServerSentEventMessage
import { ServerSentEventMessage } from "jsr:@ende/http";interface
interface ServerSentEventMessageRepresents a message in the Server-Sent Event (SSE) protocol.
See also
Properties
comment
comment?: stringIgnored by the client.
event
event?: stringA string identifying the type of event described.
data
data?: stringThe data field for the message. Split by new lines.
id
id?: string | numberThe event ID to set the EventSource object's last event ID value.
retry
retry?: numberThe reconnection time.