2.2.3 • Published 7 years ago

@events/server v2.2.3

Weekly downloads
2
License
-
Repository
-
Last release
7 years ago

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');
2.2.3

7 years ago

2.2.0

7 years ago

1.0.0

7 years ago

1.0.0-beta.5

7 years ago

1.0.0-beta.4

7 years ago

1.0.0-beta.3

7 years ago

1.0.0-beta.1

7 years ago

1.0.0-rc.15

7 years ago

1.0.0-rc.13

7 years ago

1.0.0-rc.8

7 years ago

1.0.0-rc.7

7 years ago

1.0.0-rc.6

7 years ago

1.0.0-rc.5

7 years ago

1.0.0-rc.4

7 years ago

1.0.0-rc.0

7 years ago

1.0.0-4

7 years ago

1.0.0-3

7 years ago

1.0.0-1

7 years ago

1.0.0-0

7 years ago

0.8.3

7 years ago

0.8.2

7 years ago

0.8.1

7 years ago

0.8.0

7 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago