The following is a demo that uses the fetch API in a browser to subscribe to messages streamed through a GRIP Stream pushed through a sample server that is proxied behind the open-source Pushpin (https://pushpin.org/) server.
To run the demo:
- Clone the js-grip repository, then build the commonjs build.
git clone https://github.com/fanout/js-grip
cd js-grip