socket.io
socket.io copied to clipboard
closeOnBeforeunload not working properly after upgrading to socketio v4.7.5
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 "