Charles Lehner committed 0.1.0Latest: 3483d9b on 7/23/2016, 8:49:31 PM | |
📄 | README.md |
📁 | example |
📄 | index.js |
📄 | package.json |
README.md
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