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