This is a reference implementation of a Service Broker.
To start the broker: npm start
.
To configure the broker: vi .env
.
Environment Var | Type | Description |
---|---|---|
LISTENING_PORT | Number | HTTP/WebSocket listening port |
ALLOWED_ORIGINS | RegExp | Allowed CORS origins |
PROVIDER_KEEP_ALIVE | Number | WebSocket ping/pong interval for service providers |
NON_PROVIDER_KEEP_ALIVE | Number | WebSocket ping/pong interval for clients |