@steelbreeze/broker
Advanced tools
Comparing version 1.0.0-beta.7 to 1.0.0-beta.8
/** Specifies the location of a message broker server. */ | ||
interface HTTPConfig { | ||
export interface HTTPConfig { | ||
/** The host that the message brokers express application is running on. */ | ||
@@ -10,2 +10,7 @@ host: string; | ||
} | ||
/** | ||
* Creates a client to the message broker, providing publish and subscribe operations. | ||
* @param config Configuration specifying the server, port and base URL path of the message broker server. | ||
* @returns Returns a client providing publish and subscribe operations. | ||
*/ | ||
export declare function client(config: HTTPConfig): { | ||
@@ -19,2 +24,1 @@ publish: (topicName: string, data: string, onError: ((err: Error) => void) | undefined) => void; | ||
}; | ||
export {}; |
@@ -12,2 +12,7 @@ "use strict"; | ||
var EventSource = require('eventsource'); // TODO: determine how to TypeScript import this module | ||
/** | ||
* Creates a client to the message broker, providing publish and subscribe operations. | ||
* @param config Configuration specifying the server, port and base URL path of the message broker server. | ||
* @returns Returns a client providing publish and subscribe operations. | ||
*/ | ||
function client(config) { | ||
@@ -14,0 +19,0 @@ /** |
{ | ||
"name": "@steelbreeze/broker", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-beta.8", | ||
"description": "Lightweight publish and subscribe using Server-Sent Events for node and express", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -5,3 +5,3 @@ import * as http from 'http'; | ||
/** Specifies the location of a message broker server. */ | ||
interface HTTPConfig { | ||
export interface HTTPConfig { | ||
/** The host that the message brokers express application is running on. */ | ||
@@ -17,2 +17,7 @@ host: string; | ||
/** | ||
* Creates a client to the message broker, providing publish and subscribe operations. | ||
* @param config Configuration specifying the server, port and base URL path of the message broker server. | ||
* @returns Returns a client providing publish and subscribe operations. | ||
*/ | ||
export function client(config: HTTPConfig) { | ||
@@ -19,0 +24,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23555
375