norikra-client

0.0.6 • Public • Published

Norikra client for node.js

basic usage:

var norikra = require('norikra-client');

c = norikra.createClient('http://localhost:26571')
// get a list of targets
c.targets(function (err, targets){
  console.log(targets);
})

Supported methods

open

c.open(target, fields, autoField, [callback])

target | target name to open fields | an object describing the fields with keys being the field name and values being the type autoField | boolean

close

c.close(target, [callback])

target is the name of target stream to close

targets

c.targets([callback])

returns a list of opened targets

register

c.register(name, query, [group], [callback])

register a query. default group is 'default' if not specified.

deregister

c.deregister(name, [callback])

deregister a query

queries

c.queries([callback])

get a list of registered queries

events

c.events(query_name, [callback])

get an array of events captured by the query and sweep

send

c.send(target, events, [callback])

send an array of events to target

Readme

Keywords

none

Package Sidebar

Install

npm i norikra-client

Weekly Downloads

2

Version

0.0.6

License

MIT

Last publish

Collaborators

  • freehaha