I'm trying to get socket.io working but now in Chrome I get the error:
Uncaught ReferenceError: require is not defined
client.php:9Uncaught ReferenceError: io is not defined
I changed the way to include the socket.io.js file because it dosnt exists somewher else:
<script src="/node_modules/socket.io/lib/socket.io.js"></script>
If I try
<script src="/socket.io/socket.io.js"></script>
I get: Failed to load resource: the server responded with a status of 404 (Not Found)
This is on Ubuntu with the latest of everything
I'm using the server code from http://socket.io/ to work with in the same folder like client.php and that works, named server.js, only modified port.