socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

closeOnBeforeunload not working properly after upgrading to socketio v4.7.5

Open sarmad36 opened this issue 1 year ago • 0 comments

Discussed in https://github.com/socketio/socket.io/discussions/5055

Originally posted by sarmad36 June 23, 2024 With following configuration this.socket = io({ closeOnBeforeunload: true, reconnection: true, reconnectionDelay: 100, reconnectionDelayMax: 2000, reconnectionAttempts: Infinity, transports: ["polling"], secure: true, rejectUnauthorized: false, forceNew: false, timeout: 6000, })

when I try to leave the page on Firefox the socket connection is disconnected and if I try to log the reason for disconnection it says " transport error "

sarmad36 avatar Jun 24 '24 15:06 sarmad36