Vladan Zivanovic
Vladan Zivanovic

Reputation: 61

Websocket not working on server

I'm facing for the first time with WebSocket. I used the example from here to create WebSocket https://github.com/leggetter/realtime-symfony-examples. I tried Faye and Ratcher method, and both work same.

My problem: On local machine everything is ok, but on the server, it's not. First, should I set localhost or domain URL? I tried with domain URL, and because it's https, I use wss to connect on WebSocket and getting a connection timeout. Then I tried with localhost, and it has been connected, but the client didn't receive any message.

enter image description here

Thanks

Upvotes: 0

Views: 1870

Answers (0)

Related Questions