SessionComponent
Please follow me on Weibo: @NormanLin_BadPixel Bad Pixel
This is a very simple component. When the client establishes a connection with the Gate server, it will be added after the login is successful, and the session between the client and the Gate server will be saved, and then all requests will be sent through this connection.
The client can then send messages in the following ways.
SessionComponent.Instance.Session.Send((IMessage)具体消息);