chat-example
chat-example copied to clipboard
Update index.html
The javascripts within the script tags requires dom loaded. So warpped with :
$(function(){
// existing javascripts.
});
Yup, this really needs to pulled in! Was tearing my hair out until I realized this was the fix.
In http://socket.io/get-started/chat/ :
Now in index.html I add the following snippet before the </body>
Please upgrade to "after" or accept the use of "ready" I lost a few hours to find my mistake. Personally I used "ready" as solution.