[add] WebSocket server direct message support
This commit is contained in:
parent
6f3e92a170
commit
f3b2ca53eb
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ func serve(t *testing.T) (*websocket.Upgrader, string) {
|
|||
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
router := gin.Default()
|
||||
ws.SetHandler(func(message []byte) ([]byte, error) { return message, nil })
|
||||
ws.SetHandler(func(message []byte, id int) ([]byte, error) { return message, nil })
|
||||
ws.SetRouter(router)
|
||||
|
||||
listener, err := net.Listen("tcp", "127.0.0.1:0")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue