GBytes* soup_websocket_extension_process_incoming_message ( SoupWebsocketExtension* extension, guint8* header, GBytes* payload, GError** error )
Process a message after it’s received.
Extensions using reserved bits of the header will reset them in
The message header.
The argument will be modified by the function.
The payload data.
The instance takes ownership of the data, and is responsible for freeing it.
The return location for a recoverable error.
The argument can be
If the return location is not
NULL, then you must initialize it to a
The argument will left initialized to
NULLby the method if there are no errors.
In case of error, the argument will be set to a newly allocated
GError; the caller will take ownership of the data, and be responsible for freeing it.
The message payload data, or
NULL in case of error.
|The caller of the method takes ownership of the data, and is responsible for freeing it.|