Really a very small typo, but I thought I'd mention it because it can take some time to find out...
In the demo file index.html, when wsURL is created, a space is inserted instead of a portnumber when using port 80. Should be an empty string instead:
var wsURL = "ws://" + location.hostname + (location.port ? ':' + location.port : '') + "/sockets/";
Really a very small typo, but I thought I'd mention it because it can take some time to find out... In the demo file index.html, when wsURL is created, a space is inserted instead of a portnumber when using port 80. Should be an empty string instead: var wsURL = "ws://" + location.hostname + (location.port ? ':' + location.port : '') + "/sockets/";