You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server may have an ability to request client with waiting for response.
User1 invites User2 to chat in realtime:
app.get(['/chat/invite/:userId'],(req,res,next)=>{letuserId=req.params.userIdif(req.socket.user(userId)){req.socket.user(userId).get('/chat/invite').then(userRes=>{if(userRes.data===true){res.send({status: true,charId: 5,// Any generated data after execution})}})}else{// user is not online}})
The text was updated successfully, but these errors were encountered:
Server may have an ability to request client with waiting for response.
User1 invites User2 to chat in realtime:
The text was updated successfully, but these errors were encountered: