milliamM
(lonNelson)
January 24, 2026, 5:26pm
1
I built the main project to implement the real-time chatting , using web socket.
But can’ t connect the socket btw frontend and backend.
rarely connected , but when i change some code, then lost connect immediately.
I used the gorilla package to define and use socket.
Maybe start with the chat example here?
And if you’re still having problems, post your relevant code/error messages and we might be able to help you.
3 Likes
milliamM
(lonNelson)
January 24, 2026, 6:14pm
3
milliamM:
I built the main project to implement the real-time chatting , using web socket.
But can’ t connect the socket btw frontend and backend.
rarely connected , but when i change some code, then lost connect immediately.
I used the gorilla package to define and use socket.
Yeah, gorilla package is a fast, well-tested one, but I think it’s not suit in case of windows OS—-server . In my code, there is no error when compile.
topDev
(stefan)
January 25, 2026, 1:08am
4
Mabe, In window OS, it can’t run exactly,
Well it’s my experience, I’ll recommend you to use another model for socket.
justicar
(Justicar)
February 4, 2026, 3:27pm
5
100% you have not implemented ping-pong mechanism.