base-golang/pkg/websocket/peer/callback.go

7 lines
107 B
Go
Raw Normal View History

2024-07-23 10:23:43 +08:00
package peer
type ConnectionCallBack interface {
OnClosed(*Session)
OnReceive(*Session, []byte) error
}