• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Websocket Response Code

#1
Hello!

I'm trying to implement websockets in codeigniter with Ratchet PHP as described here : http://socketo.me/docs/hello-world

I've gotten it working where I can telnet and connect to the websocket server from the same machine but I'm running into an issue when trying to connect via a browser.

I have the Chat library as described in the tutorial being autoloaded via composer and i have a controller named 'playground' with a method 'index' for the connection. Whenever I try to connect via a browser I get the following error:

WebSocket connection to 'ws://52.***/playground:443' failed: Error during WebSocket handshake: Unexpected response code: 200

Does anyone have any ideas?
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.