Skip to content

Commit 64ac910

Browse files
authored
Trigger events when broadcast message is received (#263)
1 parent c3c7e13 commit 64ac910

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

demos/demo-minimal-js/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-use-before-define */
12
/* eslint-disable no-undef */
23
import { v4 as uuidv4 } from "uuid";
34
const CallingExtensions = window.default;
@@ -47,10 +48,10 @@ const USER_AVAILABLE = "useravailable";
4748
const USER_UNAVAILABLE = "userunavailable";
4849

4950
const eventHandlers = {
50-
[INCOMING_CALL]: "incomingCall",
51-
[ANSWER_CALL]: "answerCall",
52-
[END_CALL]: "endCall",
53-
[COMPLETE_CALL]: "completeCall",
51+
[INCOMING_CALL]: incomingCall,
52+
[ANSWER_CALL]: answerCall,
53+
[END_CALL]: endCall,
54+
[COMPLETE_CALL]: completeCall,
5455
};
5556

5657
function disableButtons(ids) {

0 commit comments

Comments
 (0)