网络层
This commit is contained in:
@@ -1,18 +1,13 @@
|
||||
package ws_handler
|
||||
|
||||
import (
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
type Event interface {
|
||||
}
|
||||
|
||||
// ClientEvent 客户端发过来的Event
|
||||
type ClientEvent struct {
|
||||
Event
|
||||
Msg proto.Message
|
||||
Msg []byte
|
||||
}
|
||||
|
||||
type RemoveConnectionEvent struct {
|
||||
type PongEvent struct {
|
||||
Event
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user