handleUnparseable method
One raw skin string that did not parse. A request with an id but no type
answers bad_request; anything else is a quiet drop, flagged once.
Oversize messages count as a drop even when they carry an id.
Implementation
void handleUnparseable(String raw) {
if (_closed) return;
if (utf8.encode(raw).length > gameMaxMessageBytes) {
_noteDrop('oversize', null);
return;
}
final id = _idOfTypelessRequest(raw);
if (id != null) {
_sendSafe(
bridgeError(id, GameBridgeError.badRequest, 'type is required'));
return;
}
_noteDrop('malformed', null);
}