Just tried socket.io, works great in Chrome....but not in Firefox or IE 8

646 views
Skip to first unread message

Jason B

unread,
Oct 28, 2010, 11:49:36 PM10/28/10
to Socket.IO
I thought I tried the chat example before but it doesn't seem to be
working now.

I did a simple clean install:

git clone git://github.com/LearnBoost/Socket.IO-node.git
cd dir
git submodule init
git submodule update

sudo node example/server.js


When I try this on Firefox or IE I get a "Connecting..." but nothing
ever happens. On Chrome everything works as it should. I even tried
reverting by doing stuff like git checkout 0.5

Do I have to setup a Flash XML file? If so.. maybe I missed the docs
on how to do that, if someone could please point me in the right
direction that would be great.


Thanks,

Jason

Guillermo Rauch

unread,
Oct 29, 2010, 1:47:50 AM10/29/10
to sock...@googlegroups.com
This is confusing a lot of people unfortunately. You need to get all the submodules recursively

git submodule update --init --recursive
--
Guillermo Rauch
http://devthought.com

Emerson Macedo

unread,
Oct 29, 2010, 6:29:05 PM10/29/10
to sock...@googlegroups.com
Installing with npm also fall into this error. I´m not using flashsocket anymore, defing the transports without it.
 
cheers,
 
Emerson

--
Emerson Macedo
http://codificando.com
@emerleite

Floby

unread,
Oct 30, 2010, 6:45:39 AM10/30/10
to Socket.IO
I installed socket.io via npm and I've got this problem too. Is there
a problem in the current package ? The only solution I found was to
use another transport on those browsers.

On Oct 29, 7:47 am, Guillermo Rauch <rau...@gmail.com> wrote:
> This is confusing a lot of people unfortunately. You need to get all the
> submodules *recursively*

Emerson Macedo

unread,
Oct 30, 2010, 5:14:18 PM10/30/10
to sock...@googlegroups.com
As I've mentioned in my previous message, I've passed all transports but flashsocket and it worked as expected. Take a look:

//Server

var socket = io.listen(server, {transports:['websocket', 'htmlfile', 'xhr-multipart', 'xhr-polling']}); 


//Client

var socket = new io.Socket(null, {transports:['websocket', 'htmlfile', 'xhr-multipart', 'xhr-polling']});

Jason B

unread,
Nov 2, 2010, 2:29:15 AM11/2/10
to sock...@googlegroups.com
Thanks the recursive flag fixed it :)

I just had an old version of git on my system and the first time I ran that it did not recognize it.

Emerson Macedo

unread,
Nov 2, 2010, 1:57:23 PM11/2/10
to sock...@googlegroups.com
Yes, but need a package fix using npm. I'll try to contibute :)

Reply all
Reply to author
Forward
0 new messages