Created
May 28, 2023 07:36
-
-
Save nemo0/7eaebce9a1716bda147947e18370fa37 to your computer and use it in GitHub Desktop.
Call.js Event Handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const addEventHandler = () => { | |
SendBirdCall.addListener(`CALLS_HANDLER_${userId}`, { | |
onRinging: (call) => { | |
console.log('Receiving call'); | |
call = setDefaultCallHandlers(call); | |
setRinging(true); | |
setCall(call); | |
}, | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment