MCPcopy
hub / github.com/feross/simple-peer / endToEmptyString

Function endToEmptyString

test/trickle.js:188–194  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

186 // translate all falsey candidates to null
187 let endCandidateSent = false
188 function endToEmptyString (data) {
189 if (data.candidate && !data.candidate.candidate) {
190 data.candidate.candidate = ''
191 endCandidateSent = true
192 }
193 return data
194 }
195
196 peer1.on('error', () => t.fail('peer1 threw error'))
197 peer2.on('error', () => t.fail('peer2 threw error'))

Callers 1

trickle.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…