broker-client

0.0.8 • Public • Published

Broker Client

The official broker client.

Check out broker - your Real-time Zero-Code API Server - https://crates.io/crates/broker

Use

import BrokerClient from 'broker-client';
 
const sse = new BrokerClient('http://url', {
  headers: {
    authorization: 'Bearer 123token',
  },
});
 
sse.addEventListener('MyEvent', (messageEvent) => {});

Package Sidebar

Install

npm i broker-client

Weekly Downloads

4

Version

0.0.8

License

MIT

Unpacked Size

8.08 kB

Total Files

5

Last publish

Collaborators

  • bevanhunt