示例#1
0
 public void Send(Packet packet)
 {
     var packetStr = Packet.WriteToMessage(packet);
     Send(packetStr);
 }
示例#2
0
 public static string WriteToMessage(Packet packet)
 {
     return JsonConvert.SerializeObject(packet);
 }