MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / send

Method send

plugins/ContentFilter/media/js/ZeroFrame.js:87–95  ·  view source on GitHub ↗
(message, cb=null)

Source from the content-addressed store, hash-verified

85 }
86
87 send(message, cb=null) {
88 message.wrapper_nonce = this.wrapper_nonce
89 message.id = this.next_message_id
90 this.next_message_id++
91 this.target.postMessage(message, '*')
92 if (cb) {
93 this.waiting_cb[message.id] = cb
94 }
95 }
96
97 log(...args) {
98 console.log.apply(console, ['[ZeroFrame]'].concat(args))

Callers 6

responseMethod · 0.95
cmdMethod · 0.95
all.jsFile · 0.45
all.jsFile · 0.45
three.min.jsFile · 0.45
all.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected