typedef void(* noPollOnMessageHandler)(noPollCtx *ctx, noPollConn *conn, noPollMsg *msg, noPollPtr user_data)

Handler definition used to notify websocket messages received.

This handler will be called when a websocket message is received. Keep in mind the reference received on this handler will be finished when the handler ends. If you need to have a reference to the message after handler execution, acquire a reference via nopoll_msg_ref.

ctxThe context where the messagewas received.
connThe connection where the message was received.
msgThe websocket message was received.
user_dataAn optional user defined pointer.