This is only a part of our infrastructure for easy integration of push notifications between Server-side and Client-side. Our infrastructure are based on SSE interface. Read more about other Qri components:
|--------| |---------| |--------|
| Python | ... | Clojure | ... | Haskel |
|--------| |---------| |--------|
\ | /
\ | /
|-------------------------|
| Erlang SSE Proxy Server |
|-------------------------|
| |
| |
|----------| |----------|
| Client_1 | ... | Client_N | <-- QriJS
|----------| |----------|
Download suitable project archive zip.
Include in your html documents one of the following javascript file:
- dist/qri.js
- dist/qri.min.js (minified version)
var handler = function(data) { console.log(data); };
var opts = {
peer: "123",
checksum: "2008521774",
address: "http://example.com:8000/stream"
};
var qri = new Qri(handler, opts);
It will build the following address and will listen it:
http://example.com:8000/stream?p=123&s=2008521774