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

@matrixai/ws

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matrixai/ws - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

4

dist/WebSocketConnection.d.ts

@@ -46,2 +46,6 @@ /// <reference types="node" />

readonly connectionId: number;
/**
* Used to track streamIds that have already been used.
*/
protected usedIdSet: Set<StreamId>;
protected logger: Logger;

@@ -48,0 +52,0 @@ protected config: WebSocketConfig;

@@ -88,2 +88,6 @@ "use strict";

streamMap = new Map();
/**
* Used to track streamIds that have already been used.
*/
usedIdSet = new Set();
logger;

@@ -274,2 +278,10 @@ /**

if (stream == null) {
// FIXME: tempfix for preventing dead stream re-creation
if (this.usedIdSet.has(streamId)) {
// Silently ignore the message
return;
}
else {
this.usedIdSet.add(streamId);
}
// Because the stream code is 16 bits, and Ack is only the right-most bit set when encoded by big-endian,

@@ -276,0 +288,0 @@ // we can assume that the second byte of the StreamMessageType.Ack will look the same as if it were encoded in a u8

2

package.json
{
"name": "@matrixai/ws",
"version": "1.1.4",
"version": "1.1.5",
"author": "Matrix AI",

@@ -5,0 +5,0 @@ "contributors": [

Sorry, the diff of this file is not supported yet

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