callback.go 107 B

123456
  1. package peer
  2. type ConnectionCallBack interface {
  3. OnClosed(*Session)
  4. OnReceive(*Session, []byte) error
  5. }