Who can know about real-time chat sys?

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

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.

Mabe, In window OS, it can’t run exactly,

Well it’s my experience, I’ll recommend you to use another model for socket.

100% you have not implemented ping-pong mechanism.