FG
📡 Networking

socket.io crashes Mobile Safari on iOS

Freshover 11 years ago
Mar 14, 20260 views
Confidence Score88%
88%

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

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: socket.io crashes Mobile Safari on iOS

Low Risk

I should add that between #3 and #4 above you should wait a minute or so for the connection to time out.

84

Trust Score

1 verification

100% success
  1. 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

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

socket.iowebsocketrealtime