|
@@ -91,7 +91,7 @@ with data related to the event.
|
91
|
91
|
|
92
|
92
|
Currently we support the following events:
|
93
|
93
|
|
94
|
|
-* **incommingMessage** - event notifications about incomming
|
|
94
|
+* **incomingMessage** - event notifications about incoming
|
95
|
95
|
messages. The listener will receive object with the following structure:
|
96
|
96
|
```
|
97
|
97
|
{
|
|
@@ -135,7 +135,7 @@ This method requires one argument of type Object. The object argument must
|
135
|
135
|
have keys with the names of the events and values the listeners of the events.
|
136
|
136
|
|
137
|
137
|
```
|
138
|
|
-function incommingMessageListener(object)
|
|
138
|
+function incomingMessageListener(object)
|
139
|
139
|
{
|
140
|
140
|
...
|
141
|
141
|
}
|
|
@@ -146,19 +146,19 @@ function outgoingMessageListener(object)
|
146
|
146
|
}
|
147
|
147
|
|
148
|
148
|
api.addEventListeners({
|
149
|
|
- incommingMessage: incommingMessageListener,
|
|
149
|
+ incomingMessage: incomingMessageListener,
|
150
|
150
|
outgoingMessage: outgoingMessageListener})
|
151
|
151
|
```
|
152
|
152
|
|
153
|
153
|
If you want to remove a listener you can use ```removeEventListener``` method with argument the name of the event.
|
154
|
154
|
```
|
155
|
|
-api.removeEventListener("incommingMessage");
|
|
155
|
+api.removeEventListener("incomingMessage");
|
156
|
156
|
```
|
157
|
157
|
|
158
|
158
|
If you want to remove more than one event you can use ```removeEventListeners``` method with argument
|
159
|
159
|
array with the names of the events.
|
160
|
160
|
```
|
161
|
|
-api.removeEventListeners(["incommingMessage", "outgoingMessageListener"]);
|
|
161
|
+api.removeEventListeners(["incomingMessage", "outgoingMessageListener"]);
|
162
|
162
|
```
|
163
|
163
|
|
164
|
164
|
You can remove the embedded Jitsi Meet Conference with the following code:
|