Peer.send is a null property ?
See original GitHub issueI justed tried out simple peer today and tried sending a message
document.getElementById('connect').addEventListener('click', () => {
const recip = JSON.parse(document.getElementById('recip').value)
Peer.signal(recip)
})
Peer.send(message)
I keep getting this error
bundle.js:15006 Uncaught TypeError: Cannot read property 'send' of null
Issue Analytics
- State:
- Created 6 years ago
- Comments:11
Top Results From Across the Web
Xirsys WebRTC can't find sdp object - Stack Overflow
I'm trying to test an example provided by Xirsys where I can proceed with signaling using only PHP. The ice servers / token...
Read more >Fix Cannot Set Property of Null Error in JavaScript - YouTube
Check us out at https://www.skillforge.com The "cannot set property of null " error is a very common JavaScript issue that you may come ......
Read more >RTCPeerConnection.localDescription - Web APIs | MDN
The read-only property RTCPeerConnection.localDescription returns an RTCSessionDescription describing the session for the local end of the ...
Read more >How to use RTCPeerConnection.js? (v1.5) | Muaz Khan
Answerer · offerSDP: you need to pass offer sdp sent by other peer. · onAnswerSDP: returns answer sdp so you can send it...
Read more >Wi-Fi Direct (peer-to-peer or P2P) overview
Initial setup; Discover peers; Connect to peers; Transfer data ... attribute. --> ... channel = manager?.initialize(this, mainLooper, null)
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am soooooo sorry I did not see earlier @xemasiv
write
is a part of streaming interface, can be buffered, whilesend
sends data immediately and directly through data channel: https://github.com/feross/simple-peer#memory-usage