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

I can't run the webSocket demo #111

Closed yipingshui closed 12 years ago

yipingshui commented 12 years ago

hello gimite! I downloaded the web-socket-js directory and web-socket-ruby directory. I want to run the demo. I ran the 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

gimite commented 12 years ago

Please replace example.com with your host name. See https://github.com/gimite/web-socket-js/blob/master/README.md for details. If you still have issue, please follow "Troubleshooting" section there.

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!

yipingshui commented 12 years ago

anyone who use the VMware Workstation in your OS . Use the IP to set hostname