An open API service indexing awesome lists of open source software.

https://github.com/queckezz/koa-random-sse

Sends random sse events, mainly for testing applications or modules
https://github.com/queckezz/koa-random-sse

Last synced: 7 months ago
JSON representation

Sends random sse events, mainly for testing applications or modules

Awesome Lists containing this project

README

          

# koa-random-sse

Sends random sse events, mainly for testing applications or modules like [segmentio/sse](https://github.com/segmentio/sse).

## Installation

```bash
$ npm install koa-random-sse
```

## Example

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

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

## Test

```bash
$ make test
```

## License

MIT