fix(socket): Handle transport error during reconnection after idle

This commit is contained in:
Maksim Eltyshev
2026-02-16 10:50:09 +01:00
parent dbcdd62bdf
commit b9967feeea

View File

@@ -30,8 +30,8 @@ socket.connect = socket._connect; // eslint-disable-line no-underscore-dangle
headers,
url: `/api${url}`,
},
(_, { body, error }) => {
if (error) {
(body, { error }) => {
if (body instanceof Error || error) {
reject(body);
} else {
resolve(body);