I have been playing with node.js (0.8.14), socket.io (0.9.11) and express (3.0.3) for the couple of days but kept running into an issue where the client socket.io.js file would not load. It just kept 404ing; and it was really pissing me off… I spent some time researching why it was not working; there were a lot of “answers” but none of them worked, shocking.
I honestly spent more time trying to find the answer to this issue then I did writing most of core PHP functionality of submitting and retrieving backend data between the web server and the push engine. I finally came across someone’s fix while tirelessly searching github issues for the correct answer. See the sample code after the jump. Continue reading