peer-data
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -22,4 +22,6 @@ "use strict"; | ||
static onCandidate(event) { | ||
let peer = app_1.CONFIG.connection.peers[event.caller.id]; | ||
peer.addIceCandidate(new RTCIceCandidate(event.data)); | ||
if (event.data.candidate) { | ||
let peer = app_1.CONFIG.connection.peers[event.caller.id]; | ||
peer.addIceCandidate(new RTCIceCandidate(event.data.candidate)); | ||
} | ||
} | ||
@@ -26,0 +28,0 @@ static onOffer(event) { |
@@ -7,11 +7,9 @@ "use strict"; | ||
peer.onicecandidate = (event) => { | ||
if (event.candidate) { | ||
let message = { | ||
type: event_type_1.SignalingEventType.CANDIDATE, | ||
caller: null, | ||
callee: null, | ||
data: event.candidate | ||
}; | ||
signaling.send(message); | ||
} | ||
let message = { | ||
type: event_type_1.SignalingEventType.CANDIDATE, | ||
caller: null, | ||
callee: null, | ||
data: event | ||
}; | ||
signaling.send(message); | ||
}; | ||
@@ -18,0 +16,0 @@ return peer; |
{ | ||
"name": "peer-data", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "PeerData - library for files, media streaming/sharing using WebRTC", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83582