sendPacket method
Implementation
@override
Future<bool> sendPacket(Packet packet) async {
Socket sock = await socket();
String p = String.fromCharCodes(packet);
if (kDebugMode) {
print("send: $p");
}
sock.write("$p\n");
return true;
}