Possible Duplicate:
socket.io: Failed to load resource
I have a server already running on http://localhost:4250
I have socket.io directory, which I have downloaded from the socket.io github.
and I am trying to connect to server like:
<script src="socket.io/socket.io.js"></script>
and how I connect to server:
<script>
var socket = io.connect('http://localhost:4250');
socket.on('connect', function (data)
{
console.log(data);
socket.emit('my other event', { my: 'data' });
});
</script>
I am getting these errors:
NetworkError: 404 Not Found - http://localhost/socket.io/socket.io.js"
and
ReferenceError: io is not defined
I have already tried everything I know, so I don't know what to do now.
Thank you!