Packages
valum-0.3
Valum
ServerSentEvents
EventStreamCallback
SendEventCallback
stream_events
Valum.ServerSentEvents
Description:
Middleware and utilities to produce server-sent events.
Content:
Delegates:
public
delegate
void
EventStreamCallback
(
Request
request,
owned
SendEventCallback
send_event,
Context
context)
throws
Error
Create a context for sending SSE messages.
public
delegate
void
SendEventCallback
(
string
? event,
string
data,
string
? id =
null
,
TimeSpan
? retry =
null
)
throws
Error
Send an message over the body stream.
Functions:
public
HandlerCallback
stream_events
(
owned
EventStreamCallback
context)
Middleware that create a context for sending Server-Sent Events.