FG
💻 Software📡 Networking

Safari 5.1 Type Error Undefined Function Line 2

Freshover 14 years ago
Mar 14, 20260 views
Confidence Score86%
86%

Problem

My socket.io application works on the latest versions of Chrome and Firefox. On Safari 5.1, though, during application load I get this error: TypeError: 'undefined' is not a function (evaluating 'j.open("GET",g)'), from line 2 of socket.io.min.js for socket.io-client. The version is 1.0.17 for socket.io and socket.io.client Note: I posted this earlier, and accidentally closed the issue. So I'm reposting it.

Error Output

error: TypeError: 'undefined' is not a function (evaluating 'j.open("GET",g)'), from line 2 of socket.io.min.js for socket.io-client.

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: Safari 5.1 Type Error Undefined Function Line 2

Low Risk

Apparently npm -version doesn't work as one might expect. The version of socket.io-client is: 0.7.5. The error is: Line 2, TypeError: 'undefined' is not a function (evaluating 'j.open("GET",g,!0)')

84

Trust Score

1 verification

100% success
  1. 1

    Apparently npm -version doesn't work as one might expect. The version of socket.

    Apparently npm -version doesn't work as one might expect. The version of socket.io-client is: 0.7.5.

  2. 2

    The error is: Line 2, TypeError: 'undefined' is not a function (evaluating 'j.op

    The error is: Line 2, TypeError: 'undefined' is not a function (evaluating 'j.open("GET",g,!0)')

Validation

Resolved in socketio/socket.io GitHub issue #437. 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.iowebsocketrealtimebugunable-to-reproduce