网络层

This commit is contained in:
2025-06-28 17:38:22 +08:00
parent 54dc7ba173
commit 605197345b
20 changed files with 482 additions and 376 deletions

View File

@@ -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
}