base-golang/pkg/websocket/peer/callback.go
2024-07-23 10:23:43 +08:00

7 lines
107 B
Go

package peer
type ConnectionCallBack interface {
OnClosed(*Session)
OnReceive(*Session, []byte) error
}