Closed chrisdew closed 14 years ago
Actually README doesn't say it provides the socket policy file at port 843 :) But it might be confusing because I skipped the detail... The truth is that:
Thanks for the clarification.
Another point you could add to the readme (for other idiots like me) is:
You need to run web_socket.rb with the same hostname as the webserver. It's no good serving web-socket-js from an http://websock virtual host (on localhost) and running web_socket.rb with a parameter of ws://localhost:10081
Thanks for your help - consider this bug filed under PEBKAC.
hello chrisdew! I downloaded the web-socket-js directory and web-socket-ruby directory. I want to run the demo. I ran sample Web Socket server: ruby web-socket-ruby/samples/echo_server.rb example.com 10081. Then , I run the Nginx web Server and opened sample.html in the chrome browser. But I can't connect to the Web Socket server. I don't know how i can run it. Waiting for your help! Thanks
Hi, Yipingshui.
Sorry, I would normally love to help, but this is over two years old and it would be considerable work to get things remembered and set up again.
Unless you'd like to hire me for a few hours' work (http://www.barricane.com) you'll have to spend some more time at it.
Apologies,
Chris.
Thanks ! I solved it myself. I have installed Win7 OS in my compute. Then I installed the VMware Workstation in the win7. And then I installed Linux OS in the VMware Workstation. So, use the VMware IP to set the hostname. $ ruby web-socket-ruby/samples/echo_server.rb IP 10081. And ws://IP:10081 in sample.html. It's OK!
The README says that web-socket-ruby provides a socket policy file at port 843.
After not being able to see it listening on 843 (netstat -lntp), I grepped the source, but couldn't find 841 at all.
Am I missing something here?
Thanks,
Chris.