LearnBoost/socket.io — Issue #605: Socket interrupted in v0.8.6 and Firefox 7.0.1
Author: kellishaver
Created: 2011-10-30 20:16:07+00:00
State: open

I'm getting errors creating the web socket in Firefox 7.0.1 - I've tried to make the example as basic as possible. Here we go....

**Environment:**

OS X Lion (server and client)
Firefox v7.0.1
Node v0.4.11
Socket.io v0.8.6

**Console Error:**

The connection to ws://home:3000/socket.io/1/websocket/10796925721352367974 was interrupted while the page was loading.
http://home:3000/socket.io/socket.io.js
Line 2294

**NodeJS Output:**

node server.js
info - socket.io started
debug - served static content /socket.io.js
debug - client authorized
info - handshake authorized 10796925721352367974
debug - setting request GET /socket.io/1/websocket/10796925721352367974
debug - set heartbeat interval for client 10796925721352367974
debug - client authorized for
debug - websocket writing 1::
debug - websocket writing 5:::{"name":"welcome","args":[{"hello":"Hello."}]}
info - transport end
debug - set close timeout for client 10796925721352367974
debug - cleared close timeout for client 10796925721352367974
debug - cleared heartbeat interval for client 10796925721352367974
debug - discarding transport

**server.js**

var io = require('socket.io').listen(3000);

io.sockets.on('connection', function (socket) {
socket.emit('welcome', { hello: 'Hello.' });
});

**test.html**

Server Test

Any help would be appreciated. Thanks!