msg_gateway and msg_transfer modules

This commit is contained in:
Gordon
2021-05-26 19:24:25 +08:00
parent a7bedf1f79
commit f686fbb4ee
13 changed files with 948 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package main
import (
"Open_IM/src/msg_gateway/gate"
"flag"
"sync"
)
func main() {
rpcPort := flag.Int("rpc_port", 10500, "rpc listening port")
wsPort := flag.Int("ws_port", 10800, "rpc listening port")
flag.Parse()
var wg sync.WaitGroup
wg.Add(1)
gate.Init(*rpcPort, *wsPort)
gate.Run()
wg.Wait()
}