socket.io
Advanced tools
Comparing version 4.1.1 to 4.1.2
@@ -0,1 +1,10 @@ | ||
## [4.1.2](https://github.com/socketio/socket.io/compare/4.1.1...4.1.2) (2021-05-17) | ||
### Bug Fixes | ||
* **typings:** ensure compatibility with TypeScript 3.x ([0cb6ac9](https://github.com/socketio/socket.io/commit/0cb6ac95b49a27483b6f1b6402fa54b35f82e36f)) | ||
* ensure compatibility with previous versions of the adapter ([a2cf248](https://github.com/socketio/socket.io/commit/a2cf2486c366cb62293101c10520c57f6984a3fc)) | ||
## [4.1.1](https://github.com/socketio/socket.io/compare/4.1.0...4.1.1) (2021-05-11) | ||
@@ -2,0 +11,0 @@ |
@@ -10,2 +10,3 @@ /// <reference types="node" /> | ||
volatile?: boolean; | ||
preEncoded?: boolean; | ||
wsPreEncoded?: string; | ||
@@ -84,3 +85,3 @@ } | ||
*/ | ||
_packet(packet: Packet, opts?: WriteOptions): void; | ||
_packet(packet: Packet | any[], opts?: WriteOptions): void; | ||
private writeToEngine; | ||
@@ -87,0 +88,0 @@ /** |
@@ -158,3 +158,5 @@ "use strict"; | ||
} | ||
const encodedPackets = this.encoder.encode(packet); | ||
const encodedPackets = opts.preEncoded | ||
? packet // previous versions of the adapter incorrectly used socket.packet() instead of writeToEngine() | ||
: this.encoder.encode(packet); | ||
for (const encodedPacket of encodedPackets) { | ||
@@ -161,0 +163,0 @@ this.writeToEngine(encodedPacket, opts); |
@@ -131,3 +131,3 @@ import { Socket } from "./socket"; | ||
*/ | ||
_onServerSideEmit(args: [eventName: string, ...args: any[]]): void; | ||
_onServerSideEmit(args: [string, ...any[]]): void; | ||
/** | ||
@@ -134,0 +134,0 @@ * Gets a list of clients. |
{ | ||
"name": "socket.io", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "node.js realtime framework server", | ||
@@ -68,3 +68,3 @@ "keywords": [ | ||
"rimraf": "^3.0.2", | ||
"socket.io-client": "4.1.1", | ||
"socket.io-client": "4.1.2", | ||
"socket.io-client-v2": "npm:socket.io-client@^2.4.0", | ||
@@ -71,0 +71,0 @@ "superagent": "^6.1.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1025237
8773