This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade socket.io-client from 4.4.1 to 4.5.1.
![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=socket.io-client&from_version=4.4.1&to_version=4.5.1&pr_id=f5f7b5b2-9e63-4deb-963f-60a715ec91c5&visibility=true&has_feature_flag=false)
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
- The recommended version is **2 versions** ahead of your current version.
- The recommended version was released **21 days ago**, on 2022-05-17.
Release notes Package name: socket.io-client
// in that case, details is an error object
console.log(details.message); "xhr post error"
console.log(details.description); // 413 (the HTTP status of the response)
// details.context refers to the XMLHttpRequest object
console.log(details.context.status); // 413
console.log(details.context.responseText); // ""
});">
// in that case, details is an error objectconsole.log(details.message);"xhr post error"console.log(details.description);// 413 (the HTTP status of the response)
// details.context refers to the XMLHttpRequest objectconsole.log(details.context.status);// 413console.log(details.context.responseText);// ""});
add support for catch-all listeners for outgoing packets (74e3e60)
This is similar to onAny(), but for outgoing packets.
slice write buffer according to the maxPayload value (46fdc2f)
The server will now include a "maxPayload" field in the handshake details, allowing the clients to decide how many packets they have to send to stay under the maxHttpBufferSize value.
</li>
<li>
<b>4.4.1</b> - <a href="https://snyk.io/redirect/github/socketio/socket.io-client/releases/tag/4.4.1">2022-01-06</a></br><p>This release only contains minor changes. Please see the diff for more details.</p>
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade socket.io-client from 4.4.1 to 4.5.1.
![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=socket.io-client&from_version=4.4.1&to_version=4.5.1&pr_id=f5f7b5b2-9e63-4deb-963f-60a715ec91c5&visibility=true&has_feature_flag=false) :information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.- The recommended version is **2 versions** ahead of your current version. - The recommended version was released **21 days ago**, on 2022-05-17.
Release notes
Package name: socket.io-client
There were some minor bug fixes on the server side, which mandate a client bump.
Links:
~6.2.1
(diff)~8.2.3
Size of the bundles:
The "disconnect" event will now include additional details to help debugging if anything has gone wrong.
Example when a payload is over the maxHttpBufferSize value in HTTP long-polling mode:
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="socket.on("disconnect", (reason, details) => { console.log(reason); // "transport error"
// in that case, details is an error object console.log(details.message); "xhr post error" console.log(details.description); // 413 (the HTTP status of the response)
// details.context refers to the XMLHttpRequest object console.log(details.context.status); // 413 console.log(details.context.responseText); // "" });">
This is similar to
onAny()
, but for outgoing packets.Syntax:
The server will now include a "maxPayload" field in the handshake details, allowing the clients to decide how many packets they have to send to stay under the maxHttpBufferSize value.
Links:
~6.2.1
(diff)~8.2.3
Size of the bundles:
Links:
~6.1.1
~8.2.3
Size of the bundles:
Commit messages
Package name: socket.io-client
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs