Skip to content

Instantly share code, notes, and snippets.

@zontan
Created September 9, 2020 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zontan/2efb670510273259f9ff0713d963f566 to your computer and use it in GitHub Desktop.
Save zontan/2efb670510273259f9ff0713d963f566 to your computer and use it in GitHub Desktop.
extension ChatViewController: AgoraRtmDelegate {
func rtmKit(_ kit: AgoraRtmKit, messageReceived message: AgoraRtmMessage, fromPeer peerId: String) {
if peerId == friendID {
addMessage(user: peerId, message: message.text)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment