Skip to content

Need help with an error from engine.io-client when closing the connection #4913

Answered by darrachequesne
BerkieBb asked this question in Q&A
Discussion options

You must be logged in to vote

It seems to come from those lines: https://github.com/socketio/engine.io-client/blob/fa479164251dd1f283dd163143b546582161339a/lib/socket.ts#L944-L948

The this.beforeunloadEventListener is undefined, hence the error I think. The other browser engines seems to tolerate passing an undefined value instead of a proper function, but not in your case.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BerkieBb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants