saileifeng

Results 2 comments of saileifeng

Yes, my question is the same as mrallen1.

> 1.go 1.12 版本go mod需要设置个GOPROXY[一些依赖在国外], go 1.13不用, > 建议用阿里的`export GOPROXY=https://mirrors.aliyun.com/goproxy/`(go 1.13官方的还不是太稳定) > 2.聊天:websocket,客户端和服务端建立websocket, [核心代码](https://github.com/dreamlu/deercoder-chat/blob/master/api/controllers/chat/chatWs.go) 谢谢。 实时聊天这块可以考虑构建一个网状集群来处理,将消息主动push给对方,而不是存储于数据库中让客户端定时读取。