Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

norikra-client

0.0.6 • Public • Published

Norikra client for node.js

basic usage:

var norikra = require('norikra-client');
 
= 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

Keywords

none

install

npm i norikra-client

Downloadsweekly downloads

8

version

0.0.6

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability