Datachannel.DatachannelMessageCallback()

DESCRIPTION

Callback invoked when a datachannel has data available.

DECLARATION

    typedef std::function<void(enum MessageType type, uint8_t* buffer, size_t length)> DatachannelMessageCallback

PARAMETERS

type:
[in] Type of message received
buffer:
[in] Data buffer received
length:
[in] Length of data buffer