Client to the teamtv match realtime eventstream API
npm install @teamtv/eventstream-client_Simple Client for the teamtv event stream API_
``bash`
npm install --save @teamtv/eventstream-client
`js
import { EventStream, SSEEventStreamSource } from '@teamtv/eventstream-client';
const es = new EventStream(
new SSEEventStreamSource("
);
es.on("shot", (attributes) => {
if (attributes.result === "GOAL") {
console.log("Shot", attributes);
}
});
``