Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sweng-group-15
liowebrtc
Commits
52d880af
Commit
52d880af
authored
Jan 01, 2019
by
lazorfuzz
Browse files
Fix receivedPeerData not firing
parent
6ecea265
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/peer.js
View file @
52d880af
...
...
@@ -179,7 +179,7 @@ class Peer extends WildEmitter {
if
(
channel
)
return
channel
;
// if we don't have one by this label, create it
channel
=
this
.
channels
[
name
]
=
this
.
pc
.
createDataChannel
(
name
,
opts
);
//
this._observeDataChannel(channel, this);
this
.
_observeDataChannel
(
channel
,
this
);
return
channel
;
}
...
...
@@ -260,7 +260,7 @@ class Peer extends WildEmitter {
handleDataChannelAdded
(
channel
)
{
this
.
channels
[
channel
.
label
]
=
channel
;
this
.
_observeDataChannel
(
channel
,
this
);
//
this._observeDataChannel(channel, this);
}
sendFile
(
file
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment