# @teamtv/eventstream-client

> Client to the teamtv match realtime eventstream API

Latest version **1.0.11** (published 2021-09-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install @teamtv/eventstream-client
pnpm add @teamtv/eventstream-client
yarn add @teamtv/eventstream-client
bun add @teamtv/eventstream-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2021-09-12 |
| First published | 2019-06-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Koen Vossen |
| Maintainers | koenvossen |
| Keywords | teamtv, eventstream, realtime |

## Links

- npm: https://www.npmjs.com/package/@teamtv/eventstream-client
- Repository: https://github.com/teamtv/teamtv-eventstream-client-js
- Homepage: https://github.com/teamtv/teamtv-eventstream-client-js#readme
- Issues: https://github.com/teamtv/teamtv-eventstream-client-js/issues
- npm.io page: https://npm.io/package/@teamtv/eventstream-client

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.11 (latest) — 2021-09-12
- 1.0.10 — 2021-09-10
- 1.0.9 — 2021-09-10
- 1.0.8 — 2021-09-10
- 1.0.7 — 2021-09-09
- 1.0.6 — 2019-08-05
- 1.0.5 — 2019-08-05
- 1.0.4 — 2019-06-27
- 1.0.3 — 2019-06-21
- 1.0.2 — 2019-06-21
- 1.0.1 — 2019-06-21
- 1.0.0 — 2019-06-21
- 0.1.0 — 2019-06-21

## README

# EventStream Client

_Simple Client for the teamtv event stream API_

## Installation

```bash
npm install --save @teamtv/eventstream-client
```

## Usage

```js
import { EventStream, SSEEventStreamSource } from '@teamtv/eventstream-client';

const es = new EventStream(
  new SSEEventStreamSource("<teamtv eventstream endpoint>")
);

es.on("shot", (attributes) => {
  if (attributes.result === "GOAL") {
    console.log("Shot", attributes);
  }
});
```

---
_Source: https://npm.io/package/@teamtv/eventstream-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
