打通网络

This commit is contained in:
2021-10-21 18:46:43 +08:00
parent 67d44ea967
commit afde513ad9
10 changed files with 160 additions and 45 deletions

View File

@@ -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()
})
}