优化 Websocket 连接

This commit is contained in:
奶爸
2019-12-10 18:05:02 +08:00
parent 920737ff0c
commit 6f92e6ea05
5 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ func initDB() {
}
func main() {
go controller.ServeWeb()
go rpc.ServeRPC()
go controller.ServeWeb(80)
go rpc.ServeRPC(5555)
select {}
}