I am currently using PubNub to handle the realtime aspects of chat, and plan to change a PNChannel
's state
when a user is typing or has completed typing.
My question relates more to the client side of how something like an isTyping
state can be measured . Since every tap on the screen keyboard is bound to have some space of time in between, I was wondering if there is a "best practice" way to either measure the time gaps between screen taps to understand whether a user is typing (for example, a slow typer versus a faster typer) versus when the user has actually stopped typing?
Thanks!