Using this code on the client side:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"></script>
<script src="http://cdn.socket.io/stable/socket.io.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var socket = io.connect('http://localhost:8888');
});
</script>
Getting this error:
“io.connect is not a function”
Any suggestions?
The answer was I had to use my external ip address for the server this script is running on.