EventSourceServer

Members

Functions

connect
void connect(string url, string forwardUrl)

Messages sent to url will also be sent to anyone listening on forwardUrl.

disconnect
void disconnect(string url, string forwardUrl)

Disconnects forwardUrl from url

Static functions

adoptConnection
void adoptConnection(Cgi cgi, char[] eventUrl)

sends this cgi request to the event server so it will be fed events. You should not do anything else with the cgi object after this.

sendEvent
void sendEvent(string url, string event, string data, int lifetime)

Sends an event to the event server, starting it if necessary. The event server will distribute it to any listening clients, and store it for lifetime seconds for any later listening clients to catch up later.

Meta

History

Added January 6, 2019