From f2d880840ff04dd5b050cf9cb2ae8a8504242f30 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 12 Jan 2016 15:47:56 +0100 Subject: shared presence awareness protocol --- integration-general.rst | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'integration-general.rst') diff --git a/integration-general.rst b/integration-general.rst index c73e0f87..bab13c7c 100644 --- a/integration-general.rst +++ b/integration-general.rst @@ -11,8 +11,24 @@ on the bank website's ``HTMLDocument``. DOM events used by Taler have the prefix ``taler-``. -.. _communication: +------------------------- +Wallet Presence Awareness +------------------------- + +The bank website queries the wallet's presence by sending a ``taler-probe`` event. The +event data should be `null`. + +If the wallet is present and active, it will respond with a ``taler-wallet-present`` event. +While the user agent is displaying a website, the user might deactivate or +re-activate the wallet. A Taler-aware *should* react to those events, and +indicate to the user that they should (re-)enable the wallet if necessary. + +When the wallet is activated, the ``taler-wallet-load`` event is sent +by the wallet. When the wallet is deactivated, the ``taler-wallet-unload`` event +is sent by the wallet. + +.. _communication: ---------------------- Communication Example ---------------------- -- cgit v1.2.3