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

@types/paho-mqtt

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/paho-mqtt - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

37

paho-mqtt/index.d.ts

@@ -42,4 +42,2 @@ // Type definitions for paho-mqtt 1.0

* <p>
*
* @namespace Paho.MQTT
*/

@@ -239,12 +237,12 @@ namespace MQTT {

class Client {
/** <i>read only</i> used when connecting to the server. */
/** used when connecting to the server. */
readonly clientId: string;
/** <i>read only</i> the server's DNS hostname or dotted decimal IP address. */
/** the server's DNS hostname or dotted decimal IP address. */
readonly host: string;
/** <i>read only</i> the server's path. */
/** the server's path. */
readonly path: string;
/** <i>read only</i> the server's port. */
/** the server's port. */
readonly port: number;

@@ -334,3 +332,3 @@

*
* @return {Object[]} tracebuffer containing the time ordered trace records.
* @return tracebuffer containing the time ordered trace records.
*/

@@ -352,3 +350,3 @@ getTraceLog(): any[];

*
* @param {Paho.MQTT.Message} message - <b>mandatory</b> The {@link Paho.MQTT.Message} object to be sent.
* @param message - <b>mandatory</b> The {@link Paho.MQTT.Message} object to be sent.
* @throws {InvalidState} if the client is not connected.

@@ -361,5 +359,5 @@ */

*
* @param {string} topic - <b>mandatory</b> The name of the destination to which the message is to be sent.
* @param {string|ArrayBuffer} payload - The message data to be sent.
* @param {number} qos The Quality of Service used to deliver the message.
* @param topic - <b>mandatory</b> The name of the destination to which the message is to be sent.
* @param payload - The message data to be sent.
* @param qos The Quality of Service used to deliver the message.
* <dl>

@@ -370,3 +368,3 @@ * <dt>0 Best effort (default).

* </dl>
* @param {Boolean} retained If true, the message is to be retained by the server and delivered to both
* @param retained If true, the message is to be retained by the server and delivered to both
* current and future subscriptions. If false the server only delivers the message to current subscribers,

@@ -416,10 +414,10 @@ * this is the default for new Messages. A received message has the retained boolean set to true if the

/**
* <b>mandatory</b> The name of the destination to which the message is to be sent
* The name of the destination to which the message is to be sent
* (for messages about to be sent) or the name of the destination from which the message has been received.
* (for messages received by the onMessage function).
*/
destinationName?: string;
destinationName: string;
/**
* <i>read only</i> If true, this message might be a duplicate of one which has already been received.
* If true, this message might be a duplicate of one which has already been received.
* This is only set on messages received from the server.

@@ -429,4 +427,5 @@ */

/** <i>read only</i> The payload.
* @return Uint8Array if payload is a string. Return the original otherwise.
/**
* The payload.
* @return if payload is a string. Return the original otherwise.
*/

@@ -436,3 +435,3 @@ readonly payloadBytes: ArrayBuffer | TypedArray;

/**
* <i>read only</i> The payload as a string if the payload consists of valid UTF-8 characters.
* The payload as a string if the payload consists of valid UTF-8 characters.
* @throw {Error} if the payload is not valid UTF-8

@@ -465,3 +464,3 @@ */

/**
* @param {String|ArrayBuffer} payload The message data to be sent.
* @param payload The message data to be sent.
*/

@@ -468,0 +467,0 @@ constructor(payload: string | ArrayBuffer | TypedArray);

{
"name": "@types/paho-mqtt",
"version": "1.0.1",
"version": "1.0.2",
"description": "TypeScript definitions for paho-mqtt",

@@ -20,4 +20,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "94a01fbf9c51c70201c25dedbaa9a4060c47aab22093a790225afcb7870824ca",
"typesPublisherContentHash": "aa1642e5d9f717c2640502149ab4c58a49a3e681ef85d2e9da86f99a44f83140",
"typeScriptVersion": "2.1"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 12 Oct 2017 21:00:44 GMT
* Last updated: Wed, 25 Oct 2017 16:18:54 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: Paho

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