Socket
Socket
Sign inDemoInstall

socket.io-adapter

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socket.io-adapter - npm Package Compare versions

Comparing version 2.3.2 to 2.3.3

dist/cjs/index.d.ts

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [2.3.3](https://github.com/socketio/socket.io-adapter/compare/2.3.2...2.3.3) (2021-11-16)
### Bug Fixes
* fix broadcasting volatile packets with binary attachments ([88eee59](https://github.com/socketio/socket.io-adapter/commit/88eee5948aba94f999405239025f29c754a002e2))
## [2.3.2](https://github.com/socketio/socket.io-adapter/compare/2.3.1...2.3.2) (2021-08-28)

@@ -2,0 +11,0 @@

15

dist/index.js

@@ -101,3 +101,3 @@ "use strict";

const flags = opts.flags || {};
const basePacketOpts = {
const packetOpts = {
preEncoded: true,

@@ -109,15 +109,4 @@ volatile: flags.volatile,

const encodedPackets = this.encoder.encode(packet);
const packetOpts = encodedPackets.map(encodedPacket => {
if (typeof encodedPacket === "string") {
return Object.assign(Object.assign({}, basePacketOpts), { wsPreEncoded: "4" + encodedPacket // "4" being the "message" packet type in Engine.IO
});
}
else {
return basePacketOpts;
}
});
this.apply(opts, socket => {
for (let i = 0; i < encodedPackets.length; i++) {
socket.client.writeToEngine(encodedPackets[i], packetOpts[i]);
}
socket.client.writeToEngine(encodedPackets, packetOpts);
});

@@ -124,0 +113,0 @@ }

{
"name": "socket.io-adapter",
"version": "2.3.2",
"version": "2.3.3",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": {

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