EventStreamCallback


Description:


[ Version ( since = "0.3" ) ]
public delegate void EventStreamCallback (Request request, owned SendEventCallback send_event, Context context) throws Error

Create a context for sending SSE messages.

It replaces the VSGI.Response by a Valum.ServerSentEvents.SendEventCallback.

Parameters:

request

request this is responding to

send_event

send a SSE message

context

routing context

Exceptions:

GLib.Error

thrown errors are suppressed with GLib.warning


Package: valum-0.3