Open bharadwajpro opened 5 years ago
The addReceivedMessageListener(callback) takes a callback function which returns only id, type, connected, display name according to documentation. Then how do I retrieve the incoming message?
addReceivedMessageListener(callback)
id, type, connected, display name
The callback actually returns many more fields. Inside of the returned user object is a message field.
_recievedMessage(user) { console.log('message received: ', user.message); }
The
addReceivedMessageListener(callback)
takes a callback function which returns onlyid, type, connected, display name
according to documentation. Then how do I retrieve the incoming message?