Skip to content

Orderry/qri-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qri JavaScript interface

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:

  1. SSE server;
  2. Python lib;

Infrastructure

 |--------|     |---------|     |--------|
 | Python | ... | Clojure | ... | Haskel |
 |--------|     |---------|     |--------|
         \           |            /
          \          |           /
        |-------------------------|
        | Erlang SSE Proxy Server |
        |-------------------------|
             |               |
             |               |
       |----------|     |----------|
       | Client_1 | ... | Client_N |  <-- QriJS
       |----------|     |----------|

Installing

from source

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)

Example

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

About

Orderry Qri JavaScript interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published