[ Version ( since = "3.8" ) ]
public virtual Bytes process_incoming_message_with_limit (ref uint8 header, owned Bytes payload, uint64 max_output_size) throws Error
Process a message after it's received, without producing more than max_output_size bytes of output.
This behaves like [method@WebsocketExtension.process_incoming_message], but extensions that expand their input (such as
`permessage-deflate`) stop and return a [error@WebsocketError] error with the code [enum@WebsocketCloseCode.TOO_BIG] instead of producing
output larger than max_output_size. Extensions that don't implement this fall back to [
method@WebsocketExtension.process_incoming_message].
| this | |
| header |
the message header |
| payload |
the payload data |
| max_output_size |
the maximum size in bytes of the processed payload |
|
the message payload data, or null in case of error |