Skip to content

Commit

Permalink
Typo fixes. Closes #164
Browse files Browse the repository at this point in the history
  • Loading branch information
h3adache committed Sep 29, 2020
1 parent a170f25 commit 293e1f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ longer exist. Users can also manually unsubscribe from events by calling
connect.agent(function(agent) { /* ... */ });
```
Subscribe a method to be called when the agent is initialized. If the agent has
already been initalized, the call is synchronous and the callback is invoked
already been initialized, the call is synchronous and the callback is invoked
immediately. Otherwise, the callback is invoked once the first agent data is
received from upstream. This callback is provided with an `Agent` API object,
which can also be created at any time after initialization is complete via `new
Expand Down Expand Up @@ -629,7 +629,7 @@ agent.onMuteToggle(function(obj) {
});
```
Subscribe a method to be called when the agent updates the mute status, meaning
that agents mute/unmute APIs are called and the local media stream is succesfully updated with the new status.
that agents mute/unmute APIs are called and the local media stream is successfully updated with the new status.

## Contact API
The Contact API provides event subscription methods and action methods which can be called on behalf of a specific
Expand Down Expand Up @@ -782,7 +782,7 @@ Get the initial connection of the contact.
```js
var initialConn = contact.getActiveInitialConnection();
```
Get the inital connection of the contact, or null if the initial connection is
Get the initial connection of the contact, or null if the initial connection is
no longer active.

### `contact.getThirdPartyConnections()`
Expand Down
6 changes: 3 additions & 3 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ declare namespace connect {

/**
* Subscribe a method to be called when the agent is initialized.
* If the agent has already been initalized, the call is synchronous and the callback is invoked immediately.
* If the agent has already been initialized, the call is synchronous and the callback is invoked immediately.
* Otherwise, the callback is invoked once the first agent data is received from upstream.
* This callback is provided with an `Agent` API object, which can also be created at any time after initialization is complete via `new connect.Agent()`.
*
Expand Down Expand Up @@ -648,7 +648,7 @@ declare namespace connect {
unmute(): void;

/**
* Subscribe a method to be called when the agent updates the mute status, meaning that agents mute/unmute APIs are called and the local media stream is succesfully updated with the new status.
* Subscribe a method to be called when the agent updates the mute status, meaning that agents mute/unmute APIs are called and the local media stream is successfully updated with the new status.
*
* @param callback A callback to receive updates on agent mute state
*/
Expand Down Expand Up @@ -927,7 +927,7 @@ declare namespace connect {
/** Get the initial connection of the contact. */
getInitialConnection(): BaseConnection;

/** Get the inital connection of the contact, or null if the initial connection is no longer active. */
/** Get the initial connection of the contact, or null if the initial connection is no longer active. */
getActiveInitialConnection(): BaseConnection | null;

/** Get a list of all of the third-party connections, i.e. the list of all connections except for the initial connection, or an empty list if there are no third-party connections. */
Expand Down

0 comments on commit 293e1f1

Please sign in to comment.