Web SDK v1.0.4
stokes-christopher
released this
25 May 00:24
·
26 commits
to main
since this release
Changes
- Add extra validation to
startProcessing
arguments. - Check if websocket is connected when making a
modifySampleRate
call. If not, throwsNoConnectionError
. - Add reconnection support - if
reconnectOnError
is set totrue
in the SymblConfig, we attempt to reconnect after a break in connection. A break in connection is determined after 30 seconds of not receiving any expected data from the WebSocket. - Added
logLevel
to SymblConfig. - Add separate methods to handle
<video>
and<audio>
elements in audiostreams. Now haveattachAudioSourceElement
,detachAudioSourceElement
,updateAudioSourceElement
,attachVideoSourceElement
,detachVideoSourceElement
, andupdateVideoSourceElement
. Previous versions allowed either<audio>
or<video>
elements to be passed into the sameattachAudioSourceElement
, but going forward only the corresponding methods may be used depending on element type. - Add
getConversationId()
toStreamingAPIConnection
andSubscribeAPIConnection
. Will only be populated afterconversation_created
event has been fired. For more information on theconversation_created
event check out our Events and Callbacks page. - Add
Conversation
object which can also be used to grab the conversation ID. This object is attached toStreamingAPIConnection
andSubscribeAPIConnection
asconnection.conversation
. Going forward, theConversation
object will integrate with our Conversation APIs.
Bug fixes
- Fix typos in some of the Typescript types for Topics.