打通网络
This commit is contained in:
@@ -16,8 +16,7 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/jageros/hawox/flags"
|
||||
"github.com/jageros/hawox/httpx"
|
||||
"github.com/jageros/hawox/ws"
|
||||
"gopkg.in/olahol/melody.v1"
|
||||
"wechat/ws"
|
||||
)
|
||||
|
||||
const appName = "wechat"
|
||||
@@ -29,7 +28,4 @@ func main() {
|
||||
r := engine.Group("ws")
|
||||
ws.Init(ctx, r, flags.Source())
|
||||
})
|
||||
ws.OnMessage(func(session *melody.Session, bytes []byte) {
|
||||
//ws.Broadcast()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user