Skip to content

Commit b65f113

Browse files
committed
fixed disposed and ringing events docs
1 parent fa71550 commit b65f113

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/events/disposed.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# webPhone.on('disposed', callback)
1+
# callSession.on('disposed', callback)
22

33
This event is triggered when the web phone instance is properly disposed of. This event does not fire when an instance [expires](../get-started/instances.md#instance-expiry). This event is useful if garbage collection is required when web phone are disposed of.
44

55
## Sample
66

77
```ts
8-
webPhone.on("disposed", () => {
8+
callSession.on("disposed", () => {
99
// do something with the inbound call
1010
});
1111
```

docs/events/ringing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# webPhone.on('ringing', callback)
1+
# callSession.on('ringing', callback)
22

33
This event is triggered when a call is connected and it is ringing. It is an event that has very little utility, because when you make an outbound call, or by the time you receive an inbound call event, by the time the `callSession` object is returned, the phone is already ringing.
44

@@ -19,5 +19,5 @@ Therefore, these two code samples are functionally equivalent to the `ringing` e
1919
## Sample
2020

2121
```js
22-
webPhone.on('ringing', callSession => {...})
22+
callSession.on('ringing', callSession => {...})
2323
```

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ nav:
8585
- 'Events':
8686
- 'Subscribing to events': events/index.md
8787
- 'WebPhone events':
88-
- 'disposed': events/disposed.md
8988
- 'inboundCall': events/inboundCall.md
9089
- 'outboundCall': events/outboundCall.md
91-
- 'ringing': events/ringing.md
9290
- 'Call Session events':
9391
- 'answered': events/answered.md
92+
- 'disposed': events/disposed.md
9493
- 'inboundMessage': events/inboundMessage.md
94+
- 'ringing': events/ringing.md
9595
- 'outboundMessage': events/outboundMessage.md
9696
- 'Reference':
9797
- 'Overview': reference/index.md

0 commit comments

Comments
 (0)