Skip to content

service-broker/service-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the boilerplate code for service providers and clients to communicate with the service broker.

Configuration

The serviceBrokerUrl property in config.ts specifies the broker's websocket URL.

Calling the Service Broker

import sb from "./common/service-broker"

const response = await sb.request({
  name: "my-storage",
  capabilities: ["v1"]
}, {
  header: {
    method: "persist",
    contentType: "audio/mpeg"
  },
  payload: myAudioBuffer
})

Refer to service-broker-client for the full API documentation.

About

NodeJS boilerplate for implementing service providers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published