Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@steelbreeze/broker

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@steelbreeze/broker - npm Package Compare versions

Comparing version 1.0.0-beta.7 to 1.0.0-beta.8

8

lib/client.d.ts
/** 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 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc