koa-random-sse

0.0.4 • Public • Published

koa-random-sse

Sends random sse events, mainly for testing applications or modules like segmentio/sse.

Installation

$ npm install koa-random-sse

Example

var app = koa()
  .use(get('/', randomize(4)))

/**
 * Sents four random events in random intervals
 *
 * ->
 *   event: shout
 *   data: suggest
 *
 *   event: plan
 *   data: knowledge
 */

Test

$ make test

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i koa-random-sse

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • queckezz