BrainBoxLabs / brain-socket

Websockets for event-driven laravel apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brainsocket isnot working when I config site with https

tmbnh1 opened this issue · comments

Hello,
I installed brainsocket and it's working. But after I change my site to https, brainsocket is stop working and I edit connect command: new WebSocket('wss://myip:8080'). It's not working too.

Please help me!
Thank you very much!

I'd like to know more about this problem too.

Same here, any solution on this?
Thank you.

ratchetphp/Ratchet#33

"
We currently have no plans on supporting this in React or Ratchet due to how slow PHP is at handling SSL. The best solution is to put a SSL proxy (Nginx, STunnel, or HAProxy) in front of your WebSocket server to encrypt+decrypt your traffic.
"

That seems reasonable, thanks.

how to setup brainsocket over https site. brainsocket does not work even i changed ws to wss.

"The best solution is to put a SSL proxy (Nginx, STunnel, or HAProxy) in front of your WebSocket server to encrypt+decrypt your traffic." Does anyone know how I can do this?, Is there a tutorial?