WebSocketBundle icon indicating copy to clipboard operation
WebSocketBundle copied to clipboard

Using WAMP pusher in prod: WAMP Server did not respond properly

Open qlereboursBS opened this issue 6 years ago • 0 comments

Hello,

I used the WAMP pusher in production on my website but know that my users number is increasing, i get the following error:

Uncaught PHP Exception Gos\Component\WebSocketClient\Exception\BadResponseException: "WAMP Server did not respond properly" at /home/lig/prod/releases/2018-01-24T19:01:04_master/vendor/gos/websocket-client/Wamp/Client.php line 177

Some things to know about the environment:

  • It started to throw this error with about 50 connected users
  • My website is using HTTPS. The client is connecting in WSS to port 8443, and stunnel is linking this port with port 8084 where my websocket server is running
  • WAMP pusher is used on 3 different environments

I read that WAMP pusher was not convinient for production, and it's not a problem to use ZMQ but i'd like to be sure that this is what needs to be done. Moreover i'd like to know if it was possible to use WAMP in developement and ZMQ in production (i know i can configure it with different files in the config, but what about the call to get the pusher in controllers ?)

Thanks for your advices

qlereboursBS avatar Jan 26 '18 13:01 qlereboursBS