Library for client using socket.io

I'm new to node.js, so my question might be totally idiotic, but here we go:

I've read many articles about how to use socket.io, and to build the server is quite straightforward, but when it comes the client, it always start with:

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

and I have no idea where is this file coming from.

Can someone please explain me what I'm missing?

index.html:

<!doctype html>
<html>
    <head>
        <meta charset="utf-8"/>
    </head>
    <body>
        <h1>WE DO Chat</h1>

        <script src="http://localhost:1180/nodetest/socket.io/socket.io.js"></script>
    </body>
</html>

main.js:

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

io.sockets.on('message', function (message, callback) {
    socket.broadcast.emit(message);
});

io.sockets.on('connect', function (socket) {
    console.log("Client connected");
});

the socket.io client is part of the socket.io library (available on socket.io & github). The client library is used to spawn the connection to the server side implementation of socket.io

socket.io.js is served by the Node.js server.

<script src="http://nodejs.address:port/socket.io/socket.io.js"></script>

When utilizing the server-side (node.js npm) socket.io library this js resource is automatically matched against and delivered for the the given resource path. Try if your integration works correctly by just calling it with curl e.g.:

curl http://localhost:3000/socket.io/socket.io.js