onMessageReceived method

void onMessageReceived(
  1. BaseChannel channel,
  2. BaseMessage message
)

Informs when a message is received, with given channel and message object

Implementation

void onMessageReceived(BaseChannel channel, BaseMessage message) {}