@service-broker/webclient
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

service-broker-webclient

Browser JavaScript library for communicating with the service broker

Install

npm install @service-broker/webclient

Usage

import { ServiceBroker } from "@service-broker/webclient"

const sb = new ServiceBroker("wss://sb.mydomain.com", console)

sb.request({name: "my-service"}, {payload: "my-request"})
  .then(({payload}) => handleResult(payload))

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @service-broker/webclient

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

8.34 kB

Total Files

5

Last publish

Collaborators

  • ken107