@service-broker/webclient
v1.0.2
Published
Browser JavaScript library for communicating with the service broker
Downloads
2
Readme
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))