|
|
@@ -93,9 +93,13 @@ export default class RTC extends Listenable {
|
|
93
|
93
|
});
|
|
94
|
94
|
}
|
|
95
|
95
|
|
|
96
|
|
- onIncommingCall (event) {
|
|
|
96
|
+ /**
|
|
|
97
|
+ * Initializes the data channels of this instance.
|
|
|
98
|
+ * @param peerconnection the associated PeerConnection.
|
|
|
99
|
+ */
|
|
|
100
|
+ initializeDataChannels (peerconnection) {
|
|
97
|
101
|
if(this.options.config.openSctp) {
|
|
98
|
|
- this.dataChannels = new DataChannels(event.peerconnection,
|
|
|
102
|
+ this.dataChannels = new DataChannels(peerconnection,
|
|
99
|
103
|
this.eventEmitter);
|
|
100
|
104
|
this._dataChannelOpenListener = () => {
|
|
101
|
105
|
// mark that dataChannel is opened
|