encodePacket static method
Implementation
static String? encodePacket(Map packet,
{required bool supportsBinary,
required callback(_),
bool fromClient = false}) {
return encoder.encodePacket(encoder.Packet(packet['type'], packet['data']),
supportsBinary, callback);
}