thm-projects / arsnova.click-v2

arsnova.click is back! Now completely rewritten with Angular and Typescript.
https://arsnova.click
GNU Lesser General Public License v3.0
14 stars 6 forks source link

WebSocket connection to 'ws://localhost:15674/ws' failed #4

Open SaifAlDilaimi opened 3 years ago

SaifAlDilaimi commented 3 years ago

Hello and Happy New Year!

New year, new try... unfortunately the frontend doesnt like to connect to the backend. After fixing the error of issue #1 it did build successfully but the websocket seems to be not working:

client.js:274 WebSocket connection to 'ws://localhost:15674/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

Any idea where I can look into?

trayhem commented 3 years ago

Hi @SaifAlDilaimi,

first, please make sure that the rabbitmq is reachable (either by native installation or by mapping the 15674 port to the docker container). Then make sure that you do have the webstomp and the stomp plugin for rabbitmq enabled. Last step to check: Make sure that the rabbitmq user / password is added correctly in your rabbitmq installation (you can use the management ui to add / configure a user) and has the appropriate access rights for the '/' vhost.