nopoll_bool nopoll_msg_ref ( noPollMsg msg)

Allows to acquire a reference to the provided websocket message.

Parameters
msgThe websocket message to acquire a reference.
Returns
nopoll_true if the reference was acquired, otherwise nopoll_false is returned.

References nopoll_false, nopoll_mutex_lock(), nopoll_mutex_unlock(), and nopoll_true.

Referenced by nopoll_conn_get_msg(), nopoll_conn_read(), and nopoll_msg_join().