Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Websocket over wss:// disconnects without any errors

I am making a webcoket application for my website. Evrything were OK before I tried secured connection. Chrome just disconnects with "undefined" error. Server console shows

2014-07-25 15:24:50 [info] [client 5.ХХХ.ХХХ.ХХХ:54166] Connected

2014-07-25 15:24:50 [info] [client 5.ХХХ.ХХХ.ХХХ:54166] Disconnected

My server is running CentOS 6 with Apache and PHP 5.4. For WS server I choose Link1 Certificate also was built for TSL. What I am doing wrong? You can check it out on Link2

like image 784
user3876820 Avatar asked Feb 02 '26 13:02

user3876820


1 Answers

Solved. I replaced built-in SSL with stunnel.

like image 121
user3876820 Avatar answered Feb 04 '26 03:02

user3876820



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!