Valum.ServerSentEvents – valum-0.3 Reference Manual
ServerSentEvents
Description:
public
namespace
ServerSentEvents
Middleware and utilities to produce server-sent events.
Namespace:
Valum.ServerSentEvents
Package:
valum-0.3
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.
Methods:
public
HandlerCallback
stream_events
(
owned
EventStreamCallback
context)
Middleware that create a context for sending Server-Sent Events.
2022 vala-language.org