forked from PGR/ascnet
1
0
Fork 0

sorry moonlight team

This commit is contained in:
rfi 2023-10-14 20:03:04 +07:00
commit c09f868d28
1 changed files with 2 additions and 2 deletions

View File

@ -122,11 +122,11 @@ namespace AscNet.GameServer
DisconnectProtocol(); DisconnectProtocol();
} }
public void SendPush<T>(T push) public void SendPush<T>(string name, T push)
{ {
Packet.Push packet = new() Packet.Push packet = new()
{ {
Name = typeof(T).Name, Name = name,
Content = MessagePackSerializer.Serialize(push) Content = MessagePackSerializer.Serialize(push)
}; };
Send(new Packet() Send(new Packet()