WTSessionListeners.onMessageReceived(fn)

onMessageReceived(fn)

const fn = ({message, participantId}) => {/*code*/}

The callback will be invoked when a participant sends a message to the session

  • message - string message

  • participantId - identification of participant that sent a message

Last updated