docs: Add typing-indicators.md.

This commit is contained in:
Steve Howell
2017-09-25 11:33:29 -07:00
committed by Tim Abbott
parent 16b3feb97d
commit d6fb17c424
6 changed files with 191 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ var exports = {};
// This module handles the outbound side of typing indicators.
// We detect changes in the compose box and notify the server
// when we are typing. For the inbound side see typing_events.js.
//
// See docs/typing-indicators.md for details on typing indicators.
function send_typing_notification_ajax(recipients, operation) {
channel.post({

View File

@@ -1,6 +1,8 @@
var typing_data = (function () {
var exports = {};
// See docs/typing-indicators.md for details on typing indicators.
var typist_dct = new Dict();
var inbound_timer_dict = new Dict();

View File

@@ -1,6 +1,8 @@
var typing_events = (function () {
var exports = {};
// See docs/typing-indicators.md for details on typing indicators.
// This code handles the inbound side of typing notifications.
// When another user is typing, we process the events here.
//

View File

@@ -2,6 +2,8 @@ var typing_status = (function () {
var exports = {};
// See docs/typing-indicators.md for details on typing indicators.
// The following constants are tuned to work with
// TYPING_STARTED_EXPIRY_PERIOD, which is what the other
// users will use to time out our messages. (Or us,