peer-data
Advanced tools
Comparing version 1.0.28 to 1.0.29
@@ -87,3 +87,3 @@ (function (global, factory) { | ||
const peer = new RTCPeerConnection(servers); | ||
peer.onicecandidate = (ideEvent) => { | ||
peer.onicecandidate = (iceEvent) => { | ||
const message = { | ||
@@ -94,3 +94,3 @@ type: EventType.CANDIDATE, | ||
room: event.room, | ||
data: ideEvent.candidate, | ||
data: iceEvent.candidate, | ||
}; | ||
@@ -166,5 +166,7 @@ EventDispatcher.dispatch('send', message); | ||
const channel = this._connection.channels[event.caller.id]; | ||
const peer = this._connection.peers[event.caller.id]; | ||
channel.close(); | ||
const peer = this._connection.peers[event.caller.id]; | ||
peer.close(); | ||
delete this._connection.channels[event.caller.id]; | ||
delete this._connection.peers[event.caller.id]; | ||
} | ||
@@ -171,0 +173,0 @@ onOffer(event, signaling) { |
@@ -39,5 +39,7 @@ import { EventType } from './connection/event-type'; | ||
const channel = this._connection.channels[event.caller.id]; | ||
const peer = this._connection.peers[event.caller.id]; | ||
channel.close(); | ||
const peer = this._connection.peers[event.caller.id]; | ||
peer.close(); | ||
delete this._connection.channels[event.caller.id]; | ||
delete this._connection.peers[event.caller.id]; | ||
} | ||
@@ -44,0 +46,0 @@ onOffer(event, signaling) { |
@@ -6,3 +6,3 @@ import { EventDispatcher } from './../dispatcher/dispatcher'; | ||
const peer = new RTCPeerConnection(servers); | ||
peer.onicecandidate = (ideEvent) => { | ||
peer.onicecandidate = (iceEvent) => { | ||
const message = { | ||
@@ -13,3 +13,3 @@ type: EventType.CANDIDATE, | ||
room: event.room, | ||
data: ideEvent.candidate, | ||
data: iceEvent.candidate, | ||
}; | ||
@@ -16,0 +16,0 @@ EventDispatcher.dispatch('send', message); |
@@ -41,5 +41,7 @@ "use strict"; | ||
const channel = this._connection.channels[event.caller.id]; | ||
const peer = this._connection.peers[event.caller.id]; | ||
channel.close(); | ||
const peer = this._connection.peers[event.caller.id]; | ||
peer.close(); | ||
delete this._connection.channels[event.caller.id]; | ||
delete this._connection.peers[event.caller.id]; | ||
} | ||
@@ -46,0 +48,0 @@ onOffer(event, signaling) { |
@@ -8,3 +8,3 @@ "use strict"; | ||
const peer = new RTCPeerConnection(servers); | ||
peer.onicecandidate = (ideEvent) => { | ||
peer.onicecandidate = (iceEvent) => { | ||
const message = { | ||
@@ -15,3 +15,3 @@ type: event_type_1.EventType.CANDIDATE, | ||
room: event.room, | ||
data: ideEvent.candidate, | ||
data: iceEvent.candidate, | ||
}; | ||
@@ -18,0 +18,0 @@ dispatcher_1.EventDispatcher.dispatch('send', message); |
{ | ||
"name": "peer-data", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"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
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
220082
1308