diff --git a/Documentation.md b/Documentation.md index c624d113..52055022 100644 --- a/Documentation.md +++ b/Documentation.md @@ -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 @@ -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 @@ -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()` diff --git a/src/index.d.ts b/src/index.d.ts index d9a54bc7..836d2698 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -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()`. * @@ -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 */ @@ -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. */