WebSocketBundle
WebSocketBundle copied to clipboard
Server not start
Hello,
im following the steps to run this websocket server.
- composer require is aborting because wrong php version, ok updated.
- the config file was not created, manually added
- try to start the server. i get no message, no error and no success message. and in console i get: autobahn.min.js:62 WebSocket connection to 'wss://127.0.0.1:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
What kind of error can it be?
For 2, there isn’t a recipe that Symfony Flex applies (I tried to create one before but was having an issue building a useful enough config file that worked for all versions, I might try to redo it just for 3.0 and newer).
For 3, you’re using the WSS protocol; does your server support HTTPS? If not, change it to WS.
Ok 2 is understanding and not really a problem. The handmade config file or adding params in framework.yaml work both.
For 3. yes, the server accept temporarly only https. chnage to ws results in same error: autobahn.min.js:62 WebSocket connection to 'ws://127.0.0.1:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
i think the server is not really starting. is there a way to check out the status? nginx proxy is enabled.
if anyone looking for change php Version in ssh cli: export PATH=/opt/plesk/php/7.4/bin:$PATH; thats worked for me