protocol
http_sse_service_handler_protocol
Protocol implemented by callback-driven http_sse client and server session handlers.
logtalk_load(http_sse(loader))staticPublic predicates
handle/2
Called by open_session/4-5 for each event dispatched on a client session, in arrival order. Continue must be unified with continue to keep listening for further events (reconnecting with the last received event id if the connection drops) or with stop to end the session.
statichandle(Event,Continue)handle(+compound,-atom) - onenext/4
Called by serve_once/5-6 to obtain the next batch of outbound SSE records to write on a server session. The first call is made with State0 bound to []. Messages must be a list of terms valid for send/2. Continue must be unified with continue to have Messages written and next/4 called again with the updated state, or with stop to have Messages written and the session and connection closed.
staticnext(State0,State,Messages,Continue)next(+term,-term,-list,-atom) - oneProtected predicates
(none)
Private predicates
(none)
Operators
(none)