processServerResponse function
Processes the server response (represented as a Uint8List) and calls onData handler if we have received a good packet.
Implementation
@visibleForTesting
void processServerResponse(Uint8List data, Function onData) {
return _processServerResponse(data, onData);
}