Mercurial > libervia-web
view .hgtags @ 995:f88325b56a6a
server: dynamic pages first draft:
/!\ new dependency: autobahn
This patch introduce server part of dynamic pages.
Dynamic pages use websockets to establish constant connection with a Libervia page, allowing to receive real time data or update it.
The feature is activated by specifying "dynamic = true" in the page.
Once activated, page can implement "on_data" method which will be called when data are sent by the page.
To send data the other way, the page can use request.sendData.
The new "registerSignal" method allows to use an "on_signal" method to be called each time given signal is received, with automatic (and optional) filtering on profile.
New renderPartial and renderAndUpdate method allow to append new HTML elements to the dynamic page.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 03 Jan 2018 01:10:12 +0100 |
parents | f38b8be94131 |
children | f72064f29d2a |
line wrap: on
line source
12e889a683ce07bfdb66ca3952c93fd97329d70c SàT v0.2.0 732ed69ffe11a5116dc9f8e0b084d47cc3f5a658 SàT v0.3.0 f2c380af7304d65703cf2f88882d08b4236fd36e SàT v0.4.0 ff03fdb5215d31e65123da6646589f9393fcd929 SàT v0.5.0 9b217e14fc6a515902a66f719f3131250e83ea56 SàT v0.5.1 0af8a88ef6cd67563075f9daf2a66c4ce98c8443 0.6.0 3d372805f60c80f03bc59430581c5a8958ed436e 0.6.1