liliumbosniacum/websocket

Websocket Connection Failure

Opened this issue · 0 comments

Hi Liliumbosniacum,
Many greetings to you.

I stumbled on your video and decided to replicate your websocket with springboot following all your steps and noticed it doesn't actually connect.

I get the following message:

Index page is ready
stomp.min.js:8 Opening Web Socket...
stomp.min.js:8 Whoops! Lost connection to http://localhost:8080/our-websocket
scripts.js:57 sending private message
stomp.min.js:8 >>> SEND
destination:/ws/private-message
content-length:33

{"messageContent":"Welcome Home"}

I have tried researching the "Whoops! Lost connection to ...our-websocket" error in several quorums without success and that's why I am reaching out to you to make you aware of it.

Although on a one person browser, messages do relay, when one actually try testing the websocket using any online websocket tester such as: https://www.piesocket.com/websocket-tester It becomes clearer that there is no connection made to the socket.

Are you aware of the issue, what causes it, and if so, did you resolve it? Your helpful insight would be of great use to many people who follow your work. Thank you for putting yourself out there and doing great work for up and coming developers like myself. The world would be such a hard place without people like yourself.

Sincere blessings
Ike