Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
SimpleChatDemo: added typing events
Browse files Browse the repository at this point in the history
  • Loading branch information
pchainho committed May 16, 2019
1 parent 93eff57 commit 55c5c51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/simple-chat/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,11 @@ function prepareChat(chatController, isOwner, toReload = null) {
console.log('[SimpleChatDemo ] OnChange Event:', event);
});

chatController.onTyping(function (event) {
console.log('[SimpleChatDemo ] onTyping Event:', event);
});


chatController.onUserAdded(function (event) {
console.log('[SimpleChatDemo ] onUserAdded Event:', event);
const participantHypertyURL = event.hypertyURL;
Expand Down Expand Up @@ -411,6 +416,8 @@ function prepareChat(chatController, isOwner, toReload = null) {
inviteParticipants(chatController, isOwner);
});

document.addEventListener('keydown', event => { chatController.typing() } )

}

function inviteParticipants(chatController, isOwner) {
Expand Down

0 comments on commit 55c5c51

Please sign in to comment.