add pooling

This commit is contained in:
Андрей Бабушкин 2025-03-20 18:47:54 +01:00
parent dd469d2349
commit a98403921a
2 changed files with 2 additions and 2 deletions

View file

@ -185,7 +185,7 @@ export default class AssistManager {
const socket: Socket = (this.socket = io(urlObject.origin, {
withCredentials: true,
multiplex: true,
transports: ['websocket'],
transports: ['pooling', 'websocket'],
path: '/ws-assist/socket',
auth: {
token: agentToken,

View file

@ -241,7 +241,7 @@ export default class Assist {
extraHeaders: {
sessionId,
},
transports: ['websocket',],
transports: ['pooling', 'websocket'],
withCredentials: true,
reconnection: true,
reconnectionAttempts: 30,