wdlsvnit / Omeclone

A clone of omegle.com
104 stars 50 forks source link

kick out the user if inactive for long time #58

Closed kvnamipara closed 6 years ago

kvnamipara commented 6 years ago

we have to end the conversation if one of user if not responding we can set certain time limit and make this possible

Please share your views

lunaticmonk commented 6 years ago

Lets make it 4-5 mins because it will continuously make ajax calls to socketio. and that's not good for us.

kvnamipara commented 6 years ago

@sumedh123 cant's we make a different ajax calls once user has not typed something in typing field in specified times?

lunaticmonk commented 6 years ago

@kvnamipara sockeito basically opens up a long polling and hence requests are continuously sent. see console.

lunaticmonk commented 6 years ago

@kvnamipara 'cant's we make a different ajax calls once user has not typed something in typing field in specified times?'

Please explain in detail. dint get it. What do you mean by different ajax calls? you want to say that you want to know if a user hasnt typed anything? right? we can emit a disconnect socketio event if the user is inactive for certain time.

jainkeval commented 6 years ago

I would like to work on this.

kvnamipara commented 6 years ago

@sumedh123 @jainkeval we should limit this to 1 minute as sole purpose of user will be to chat

lunaticmonk commented 6 years ago

@jainkeval Are you doing this one or https://github.com/wdlsvnit/Omeclone/issues/78 ? Do one at a time so that I can assign this to someone else.