gimite / web-socket-js

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

web-socket-ruby doesn't provide socket policy file at port 843 #1

Closed chrisdew closed 14 years ago

chrisdew commented 14 years ago

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.

gimite commented 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:

chrisdew commented 14 years ago

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.

yipingshui commented 12 years ago

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

chrisdew commented 12 years ago

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.

yipingshui commented 12 years ago

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!