code: function(threadId, callback) {
                  if (threadId) {
                      var tempSendQueue = [];
  
                      for (var i = 0; i < chatSendQueue.length; i++) {
                          if (chatSendQueue[i].threadId == threadId) {
                              tempSendQueue.push(chatSendQueue[i]);
                          }
                      }
                      callback && callback(tempSendQueue);
                  }
                  else {
                      callback && callback(chatSendQueue);
                  }
              }
docs: *****************************************************
  P R I V A T E   M E T H O D S            *
  *****************************************************