lxzan / gws

simple, fast, reliable websocket server & client, supports running over tcp/kcp/unix domain socket. keywords: ws, proxy, chat, go, golang...
https://pkg.go.dev/github.com/lxzan/gws
Apache License 2.0
1.34k stars 84 forks source link

这个库我该如何拿到messageType 跟 io.Reader,类似gorilla/websocket 的 NextReader #47

Closed DarkiT closed 11 months ago

DarkiT commented 11 months ago

请问这个库我该如何拿到messageType 跟 io.Reader,类似gorilla/websocket 的 NextReader

func (c *Conn) NextReader() (messageType int, r io.Reader, err error) 
lxzan commented 11 months ago

都在gws.Message里面