Skip to content

Commit

Permalink
成果物を更新する
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Ito committed Jan 27, 2022
1 parent 224cb19 commit e20a913
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
15 changes: 10 additions & 5 deletions dist/sora.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* sora-js-sdk
* WebRTC SFU Sora JavaScript SDK
* @version: 2021.2.0
* @version: 2021.2.1
* @author: Shiguredo Inc.
* @license: Apache-2.0
**/
Expand Down Expand Up @@ -1635,7 +1635,7 @@
}
const message = {
type: "connect",
sora_client: "Sora JavaScript SDK 2021.2.0",
sora_client: "Sora JavaScript SDK 2021.2.1",
environment: window.navigator.userAgent,
role: role,
channel_id: channelId,
Expand Down Expand Up @@ -2873,8 +2873,13 @@
}
else if (message.type == "redirect") {
this.writeWebSocketSignalingLog("onmessage-redirect", message);
const redirectMessage = await this.signalingOnMessageTypeRedirect(message);
resolve(redirectMessage);
try {
const redirectMessage = await this.signalingOnMessageTypeRedirect(message);
resolve(redirectMessage);
}
catch (error) {
reject(error);
}
}
};
// eslint-disable-next-line @typescript-eslint/no-floating-promises
Expand Down Expand Up @@ -4373,7 +4378,7 @@
* @public
*/
version: function () {
return "2021.2.0";
return "2021.2.1";
},
/**
* WebRTC のユーティリティ関数群
Expand Down
2 changes: 1 addition & 1 deletion dist/sora.min.js

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions dist/sora.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* sora-js-sdk
* WebRTC SFU Sora JavaScript SDK
* @version: 2021.2.0
* @version: 2021.2.1
* @author: Shiguredo Inc.
* @license: Apache-2.0
**/
Expand Down Expand Up @@ -1629,7 +1629,7 @@ function createSignalingMessage(offerSDP, role, channelId, metadata, options, re
}
const message = {
type: "connect",
sora_client: "Sora JavaScript SDK 2021.2.0",
sora_client: "Sora JavaScript SDK 2021.2.1",
environment: window.navigator.userAgent,
role: role,
channel_id: channelId,
Expand Down Expand Up @@ -2867,8 +2867,13 @@ class ConnectionBase {
}
else if (message.type == "redirect") {
this.writeWebSocketSignalingLog("onmessage-redirect", message);
const redirectMessage = await this.signalingOnMessageTypeRedirect(message);
resolve(redirectMessage);
try {
const redirectMessage = await this.signalingOnMessageTypeRedirect(message);
resolve(redirectMessage);
}
catch (error) {
reject(error);
}
}
};
// eslint-disable-next-line @typescript-eslint/no-floating-promises
Expand Down Expand Up @@ -4367,7 +4372,7 @@ var sora = {
* @public
*/
version: function () {
return "2021.2.0";
return "2021.2.1";
},
/**
* WebRTC のユーティリティ関数群
Expand Down

0 comments on commit e20a913

Please sign in to comment.