Close

And now, JavaScript !

A project log for micro HTTP server in C

Connect your browser to your smart devices, using a minimalist HTTP compliant server written in POSIX/C

Yann Guidon / YGDESYann Guidon / YGDES 05/09/2020 at 00:340 Comments

The latest revision is working, at least from the C side.

Now is the time to evolve the client side, with the creation of a JavaScript client side.

So far the keepalive mechanism is working well but there is just one issue : the page can be opened in two tabs of the same web browser...

I need to find a trick to prevent this !


20200511:

The root HTTaP object includes a new element : "HTTaP_open" is 0 when /? is first accessed, and 1 subsequently.

It is up to the client to detect this situation and avoid loading anything else to prevent disruption of the already established connection.


20200514:

I have also solved the problem of dangling/open connections when the page is closed or reloaded !

Discussions