@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))

Readme

Keywords

none

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