scene
This commit is contained in:
@@ -82,7 +82,7 @@ func (s *WSServer) OnClose(c gnet.Conn, err error) (action gnet.Action) {
|
||||
ws, ok := c.Context().(*WSConn)
|
||||
if ok {
|
||||
ws.isClose = true
|
||||
ws.logger.Warnf("connection close: %v --------------------------------------------------", err)
|
||||
ws.logger.Warnf("connection close, err: %v", err)
|
||||
return gnet.Action(s.i.OnClose(ws, err))
|
||||
}
|
||||
return
|
||||
|
||||
17
Server/common/proto/grpc/scene.proto
Normal file
17
Server/common/proto/grpc/scene.proto
Normal file
@@ -0,0 +1,17 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "common/proto/gen/grpc_pb";
|
||||
import "common.proto";
|
||||
|
||||
service Scene {
|
||||
rpc Enter(EnterReq) returns (EnterResp) {}
|
||||
}
|
||||
|
||||
message EnterReq {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message EnterResp {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user