From c606f64abef5358543d9b26feaf29f9cbdad203d Mon Sep 17 00:00:00 2001 From: michielmulders Date: Sat, 30 Sep 2017 19:53:15 +0200 Subject: [PATCH] Webpage for seeing txs from event stream api added --- docs/source/usage.rst | 107 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/docs/source/usage.rst b/docs/source/usage.rst index 4b958bb..7c30283 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -357,6 +357,113 @@ Recap: Asset Creation & Transfer .then(() => conn.searchAssets('Bicycle Inc.')) .then(assets => console.log('Found assets with serial number Bicycle Inc.:', assets)) + +Websocket Event Stream API Usage +-------------------------------- + +The Event Stream API enables new ways to interact with BigchainDB, making it possible for your application to subscribe to all newly–confirmed transactions that are happening in the system. +Below piece of code can be opened in your web browser. It will connect to your websocket (change it at ``var wsUri``). This web page will display all validated transactions. + +.. code-block:: html + + + + WebSocket BigchainDB + + + + + + + + + + + + + + +
+

WebSocket API Stream Valid Transactions BigchainDB

+
+ + +
+
+ + + + Divisible Assets ----------------