Expand/Shrink

nopoll_msg_get_payload

Definition: include nopoll.e

atom pPayload = nopoll_msg_get_payload(atom pMsg)
Description: Get a reference to the payload content inside the provided websocket message.

pMsg: The websocket message to get the payload from.

Returns: A reference to the payload or NULL if it fails.
See nopoll_msg_get_payload_size to get the payload size.

Typically a call to this function would shortly be followed by peek_string(pPayload), or
peek({pPayload,nopoll_msg_get_payload_size(pMsg)}) in cases where the message might contain binary data.
See Also: nopoll_msg_get_payload_size, nopoll_conn_get_msg, nopoll_conn_read