KestrunContext.WriteSseEvent method

Synchronous wrapper for WriteSseEventAsync.

public void WriteSseEvent(string? @event, string data, string? id = null, int? retryMs = null)
parameter description
event The name of the event.
data The data payload of the event.
id The event ID.
retryMs Reconnection time in milliseconds

See Also