Run the project and you should not see any errors

to test the web socket connection use this website https://www.piesocket.com/websocket-tester

type this on the text field ws://localhost:8080/chat-socket?userName=Paulo and click in connect and that is it!

image

image

If all goes okay, you can send messages from the same text field once a connection was established

After that you can access the mongoDb running locally to see the messages registered

image