Mercurial > libervia-web
view src/browser/otr.min.js_README @ 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 | ee38b6a87692 |
children |
line wrap: on
line source
The file otr.min.js includes: - minified versions of the following otr.js dependencies: otr/dep/bigint.js otr/dep/crypto.js otr/dep/eventemitter.js The following minification tool has been used: yui compressor - minified version of otr.js taken from the project homepage All original files can be retrieved from otr.js repository: https://github.com/arlolra/otr/tree/master/build See the README file of Libervia, or inside otr.min.js itself for licence information.