DEV Community

Discussion on: Adding Video Chat To Your Laravel App

Collapse
 
vardgesk profile image
Vardges

Hello Kofi Mupati,

Tell me pleasе what if user is busy. How to define ?

Collapse
 
mupati profile image
Kofi Mupati

Of the top of my head I think you can have a property in the user object say: isBusy: false. When the call is established between the 2, you update that property.
When you get an incoming call, you check that property before you accept. If busy you can decline by sending a message to the call via websockets(pusher)