onAck method

void onAck(
  1. dynamic packet
)

Called upon ack packet.

@api private

Implementation

void onAck(packet) {
  Function ack = acks.remove(packet['id']);
  Function.apply(ack, packet['data']);
}