@events/server
An HTTP API for committing and subscribing events.
Last updated 3 years ago by tungv .
Original npm · Tarball · package.json
$ cnpm install @events/server 
SYNC missed versions from official npm registry.

npm.im/@events/server

An HTTP API for committing and subscribing events.

  1. built on top redis - the leading in-memory NoSQL database
  2. guaranted atomicity with embedded lua script running inside redis
  3. messages are semi-persistent (will eventually expire or cut-off after going over the limits).
  4. lightweight/simple protocol: using http text/event-stream to send realtime data from server to server

usage:

I'd recommend you to use https://npm.im/@events/cli to manage events server instances. However, if you want to programmatically interact with the server, please follow the below example:

import factory from '@events/server';

const server = factory({
  namespc: 'my-awesome-project',
  redis: { url: 'redis://localhost:6379' },
  history: { size: 10 },
  burst: {
    time: 500,
    count: 20,
  },
  debug: false,
});

server.listen(3000);

console.log('server started');

Current Tags

  • 1.0.0-4                                ...           beta (3 years ago)
  • 2.2.3                                ...           latest (3 years ago)

30 Versions

  • 2.2.3                                ...           3 years ago
  • 2.2.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 1.0.0-beta.5                                ...           3 years ago
  • 1.0.0-beta.4                                ...           3 years ago
  • 1.0.0-beta.3                                ...           3 years ago
  • 1.0.0-beta.1                                ...           3 years ago
  • 1.0.0-rc.15                                ...           3 years ago
  • 1.0.0-rc.13                                ...           3 years ago
  • 1.0.0-rc.8                                ...           3 years ago
  • 1.0.0-rc.7                                ...           3 years ago
  • 1.0.0-rc.6                                ...           3 years ago
  • 1.0.0-rc.5                                ...           3 years ago
  • 1.0.0-rc.4                                ...           3 years ago
  • 1.0.0-rc.0                                ...           3 years ago
  • 1.0.0-4                                ...           3 years ago
  • 1.0.0-3                                ...           3 years ago
  • 1.0.0-1                                ...           3 years ago
  • 1.0.0-0                                ...           3 years ago
  • 0.8.4-interactive.9                                ...           3 years ago
  • 0.8.4-interactive.7                                ...           3 years ago
  • 0.8.4-interactive.1                                ...           3 years ago
  • 0.8.4-interactive.0                                ...           3 years ago
  • 0.8.3                                ...           3 years ago
  • 0.8.2                                ...           3 years ago
  • 0.8.1                                ...           3 years ago
  • 0.8.0                                ...           3 years ago
  • 0.7.2                                ...           3 years ago
  • 0.7.1                                ...           3 years ago
  • 0.7.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 31
Last Day 0
Last Week 30
Last Month 0
Dependencies (10)
Dev Dependencies (12)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |