CodeIgniter Forums
Websocket Response Code - Printable Version

+- CodeIgniter Forums (
+-- Forum: Using CodeIgniter (
+--- Forum: General Help (
+--- Thread: Websocket Response Code (/thread-64151.html)

Websocket Response Code - albertleao - 01-20-2016


I'm trying to implement websockets in codeigniter with Ratchet PHP as described here :

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?