question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Peer.send is a null property ?

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
andreGarvincommented, Jun 15, 2018

I am soooooo sorry I did not see earlier @xemasiv

1reaction
nazar-pccommented, Jun 14, 2018

write is a part of streaming interface, can be buffered, while send sends data immediately and directly through data channel: https://github.com/feross/simple-peer#memory-usage

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found