LearnBoost/socket.io — Issue #761: running socket.io from a subfolder
Author: coldi
Created: 2012-02-23 09:38:38+00:00
State: open

hi,

i'm just starting with node and socket.io and i set up my scripts in a path like:
sub.domain.com/nodejs/

server is woring fine, but i have problems telling the client to connect/route to the nodejs/ subfolder.

socket = io.connect('http://sub.domain.com/nodejs');

just ends up in a 404 request for
http://sub.domain.com/socket.io/1/?t=1329989099046
...no nodejs/ in there!

i tried io.setPath but it says io object has no method like that.
i'm using nodejs v0.6.0
and socket.io v0.8.7

i appreciate any help to solve this. spent the last half night searching on google :(