1.0.6 • Published 2 years ago

@asaje/sse-push-event-client v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

SSE-PUSH-EVENT

Description

Lightweight package for SSE push events handling

Installation

npm i @asaje/sse-push-event-client

or

yarn add @asaje/sse-push-event-client

How to use

import {
  initPushEvent,
  joinPushEventRoom,
  addPushEventListener,
} from '@asaje/sse-push-event-client';

initPushEvent('http://localhost:3000/events');

joinPushEventRoom('test');

addPushEventListener('TEST', (data) => {
  console.log('Received: ', data);
});
1.0.6

2 years ago

1.0.5

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago