socket.io crashes Mobile Safari on iOS
Problem
I am having an issue with Mobile Safari crashing on iOS. The following will consistently reproduce a crash for me: 1. Load a page in Mobile Safari that connects using socket.io. 2. Click the "change tab" button and navigate to a different tab to put the current tab in the background. 3. Send a message from the server to the client. 4. Navigate back to the original tab (the one that connected via socket.io). Mobile Safari crashes. I think it is related to this: https://gist.github.com/2052006 The page above includes a workaround, but I'm not sure how to implement this workaround with socket.io.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: socket.io crashes Mobile Safari on iOS
I should add that between #3 and #4 above you should wait a minute or so for the connection to time out.
Trust Score
1 verification
- 1
I should add that between #3 and #4 above you should wait a minute or so for the
I should add that between #3 and #4 above you should wait a minute or so for the connection to time out.
Validation
Resolved in socketio/socket.io GitHub issue #976. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep