gimite / web-socket-js

HTML5 Web Socket implementation powered by Flash
BSD 3-Clause "New" or "Revised" License
2.73k stars 489 forks source link

gotchas #59

Closed inspire22 closed 13 years ago

inspire22 commented 13 years ago

Vs. native sockets, flash sockets need a '/' after the port, so this fails: ws://myserver:8080?room=blah

but :8080/?room=blah works.

Another one for me was that it wouldn't connect at all unless I was running my server at port 80 (as a test server it's usually on another port). Probably some security thing.

Thanks for a great project!

gimite commented 13 years ago

Thanks for the report. I didn't know it's valid URL :) Fixed with: https://github.com/gimite/web-socket-js/commit/d7ab7546570d83ad7fcd65c84b3dab45d003b6e7

Another one for me was that it wouldn't connect at all unless I was running my server at port 80 (as a test server it's usually on another port). Probably some security thing.

I'm running Web Socket server at port 13000 etc., so it should work. Please check if Flash socket policy file on your server allow connection to the port.