Ratchet websocket with cloudflare ERROR 400

110 views
Skip to first unread message

Fhu

unread,
Mar 12, 2015, 12:27:48 PM3/12/15
to ratch...@googlegroups.com
Hi, anybody can help to run ratchet websocket behind cloudflare?

I Follow this guide from cloudflare which port can be opened:

But it give me error in chrome:  WebSocket connection to 'ws://mydomain.com:2052/?room=6' failed: Error during WebSocket handshake: Unexpected response code: 400'
and firefox: "NetworkError: 400 Bad Request - http://mydomain.com:2052/?room=6"

I'm successfully run the apps without cloudflare.
Is there any I missed here?
because I tried using socket.io it can run successful also with those port.

any guide or help really appreciate.

best regards,
Fhu

cboden

unread,
Mar 12, 2015, 12:31:47 PM3/12/15
to ratch...@googlegroups.com
Without seeing your source code the two most likely scenarios are:

1) OriginCheck failed. You're attempting to access mydomain.com via a web browser when the site is not on mydomain.com
2) Bad route: If you're using App or Router the path you're trying to access has not been defined. 
Reply all
Reply to author
Forward
0 new messages