Function
Static Public Summary | ||
public |
TypingDetector(conversation: Conversation, options: Object): * Detects whether the user is typing in an input field and send typing events to the server. |
Static Public
public TypingDetector(conversation: Conversation, options: Object): * source
import TypingDetector from 'js-chat-demo/utils/TypingDetector.jsx'
Detects whether the user is typing in an input field and send typing events to the server.
Return:
* |
Example:
var typing = TypingDetector(conversation); // NOTE: this is not a class, don't use 'new'.
<input type=text oninput="typing()" />