process_outgoing_message


Description:

public virtual Bytes process_outgoing_message (ref uint8 header, owned Bytes payload) throws Error

Process a message before it's sent.

If the payload isn't changed the given payload is just returned, otherwise [[email protected]] is called on the given payload and a new [[email protected]] is returned with the new data.

Extensions using reserved bits of the header will change them in header.

Parameters:

this

a WebsocketExtension

header

the message header

payload

the payload data

Returns:

the message payload data, or null in case of error




2022 vala-language.org