Files: 94218c5299a24839698794544ff97723028cbf99 / README.md
1240 bytesRaw
pull-postmsg
pull-stream for bidirectional communication between frames using window.postMessage, which respects backpressure.
var Postmsg = require('pull-postsg')
var through = Postmsg(win, origin)
through
: through-stream for communication betweenwin
and the current windowwin
: window object to post messages to. If not specified, the source window for the first message received on the current window will be used.origin
: origin URL or path. defaults to'*'
. This value is used when posting messages towin
and is used to filter messages received on the current window.
See also
- mmckegg's window-stream
- https://steveliles.github.io/cross_domain_inter_frame_communication_in_javascript.html
License
Copyright (c) 2016 Charles Lehner
Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument.
DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.
Built with git-ssb-web