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

Commit 9b8139c

Browse files
committed
Code cleanup.
1 parent 6ea30e7 commit 9b8139c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sdk/p2p/peerconnection-channel.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ const sysInfo = Utils.sysInfo();
5454

5555
/**
5656
* @class P2PPeerConnectionChannel
57-
* @desc A P2PPeerConnectionChannel handles all interactions between this endpoint and a remote endpoint.
57+
* @desc A P2PPeerConnectionChannel manages a PeerConnection object, handles all
58+
* interactions between this endpoint (local) and a remote endpoint. Only one
59+
* PeerConnectionChannel is alive for a local - remote endpoint pair at any
60+
* given time.
5861
* @memberOf Owt.P2P
5962
* @private
6063
*/
@@ -65,7 +68,6 @@ class P2PPeerConnectionChannel extends EventDispatcher {
6568
config, localId, remoteId, connectionId, signaling) {
6669
super();
6770
this._config = config;
68-
this._localId = localId;
6971
this._remoteId = remoteId;
7072
this._connectionId = connectionId;
7173
this._signaling = signaling;
@@ -94,7 +96,6 @@ class P2PPeerConnectionChannel extends EventDispatcher {
9496
this._sendDataPromises = new Map(); // Key is data sequence number, value is an object has |resolve| and |reject|.
9597
this._addedTrackIds = []; // Tracks that have been added after receiving remote SDP but before connection is established. Draining these messages when ICE connection state is connected.
9698
this._isPolitePeer = localId < remoteId;
97-
this._infoSent = false;
9899
this._disposed = false;
99100
this._createPeerConnection();
100101
this._sendSignalingMessage(SignalingType.UA, sysInfo);

0 commit comments

Comments
 (0)