Where is socket.io.js ?

11,019 views
Skip to first unread message

Damiano

unread,
Jun 4, 2011, 5:25:15 PM6/4/11
to Socket.IO
Hello everybody,

Today I've started to use socket.io, I think it's a very good
project... I thank you in advance for your support.

I have seen the examples on www.socket.io the main problemthat I have
at the moment is finding the socket.io.js file, because in all the
examples i see:

<script src="/socket.io/socket.io.js"></script>

there is NOT socket.io.js file inside this directory... I really do
not understand the problem...

I have tried to download socket.io using npm and using:

git clone git://github.com/LearnBoost/Socket.IO-node.git socket.io --
recursive

nothing to do, the same problem, there is not that file on /socket.io/
directory.

Could someone help me?

Thank you!

saurabh verma

unread,
Jun 6, 2011, 12:32:03 PM6/6/11
to sock...@googlegroups.com, Damiano
github/socket.io/lib/socket.io/listener.js

line number 121 :

fs.readFile(__dirname + '/../../support/socket.io-client/' + path, function(err, data){

ls -l github/socket.io/support/socket.io-client/socket.io.js

-rw-r--r-- 1 saurabhve staff 77256 Jun 6 21:55 support/socket.io-client/socket.io.js


Hope this answers your question ?


~saurabh.ve

Hardik Ruparel

unread,
Jun 7, 2011, 12:33:50 AM6/7/11
to Socket.IO
Hi Damiano,

The file you mention gets automatically hosted at "/socket.io/
socket.io.js" and you don't actually need to touch that file. All your
programming should be in the server.js and client.html files.

Why don't you try running a few examples, I'm sure they'll work !

On Jun 5, 2:25 am, Damiano <damianopo...@gmail.com> wrote:
> Hello everybody,
>
> Today I've started to use socket.io, I think it's a very good
> project... I thank you in advance for your support.
>
> I have seen the examples onwww.socket.iothe main problemthat I have

Alexandre M

unread,
Jun 13, 2011, 1:40:04 PM6/13/11
to Socket.IO
There's 2 different codebases, one for nodejs implementation and one
for the javascript client library.

https://github.com/LearnBoost/Socket.IO-node
https://github.com/LearnBoost/Socket.IO

On 4 juin, 17:25, Damiano <damianopo...@gmail.com> wrote:
> Hello everybody,
>
> Today I've started to use socket.io, I think it's a very good
> project... I thank you in advance for your support.
>
> I have seen the examples onwww.socket.iothe main problemthat I have
Reply all
Reply to author
Forward
0 new messages