Home: www.raditex.nu

SSE ServerSideEvent Example

This is a simple example how a webb-page use see to start a cgi program and read information from this.

The webb-page

The webb page open a socket to the cgi program and then listen on input on this socket.

The C-code

The C-code start up and generate an initial message and then starts a periodic call to a function that sends a message (the time) to the webb-page (the client).

Several instances

Two tabs

Gives two instances of the program on the server