Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 56ae6b5

Browse files
authored
Remove os and runtime fron UA info. (#489)
1 parent 7d31677 commit 56ae6b5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/sdk/conference/client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,10 @@ export const ConferenceClient = function(config, signalingImpl) {
391391

392392
signalingState = SignalingState.CONNECTING;
393393

394+
const sysInfo = Utils.sysInfo();
394395
const loginInfo = {
395396
token: tokenString,
396-
userAgent: Utils.sysInfo(),
397+
userAgent: {sdk: sysInfo.sdk},
397398
protocol: protocolVersion,
398399
};
399400

src/sdk/p2p/peerconnection-channel.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class P2PPeerConnectionChannel extends EventDispatcher {
100100
this._settingRemoteSdp = false;
101101
this._disposed = false;
102102
this._createPeerConnection();
103-
this._sendSignalingMessage(SignalingType.UA, sysInfo);
103+
this._sendUa(sysInfo);
104104
}
105105

106106
/**
@@ -231,6 +231,11 @@ class P2PPeerConnectionChannel extends EventDispatcher {
231231
this._remoteId, this._connectionId, SignalingType.SDP, sdp);
232232
}
233233

234+
_sendUa(sysInfo) {
235+
const ua = {sdk: sysInfo.sdk, capabilities: sysInfo.capabilities};
236+
this._sendSignalingMessage(SignalingType.UA, ua);
237+
}
238+
234239
_sendSignalingMessage(type, message) {
235240
return this._signaling.sendSignalingMessage(
236241
this._remoteId, this._connectionId, type, message);

0 commit comments

Comments
 (0)