SendEventCallback


Description:


[ Version ( since = "0.3" ) ]
public delegate void SendEventCallback (string? event, string data, string? id = null, TimeSpan? retry = null) throws Error

Send an message over the body stream.

All string data must be encoded using UTF-8 and multi-line data are handled properly by writing multiple 'data:' fields.

Parameters:

event

event name, or 'null' to omit the field

data

event data

id

event identifier, or 'null' to omit the field

retry

retry, or 'null' to omit the field

Exceptions:

Error

errors are handled as warnings to avoid breaking the `text/event-stream` content


Package: valum-0.3