golang websocket 服务端

创建一个websocket的服务端 package smile import ( "errors" "log" "net/http" "sync" "time" "github.com/gorilla/websocket" ) const ( // 允许等待的写入时间 writeWait = 10 * time.Second // Time allowed to read the next pong message from the peer. pongWait = 60 * time.Seco...阅读全文

2019.08.27 16:13 小柒的另一个世界
阅读:8335 评论:1