git ssb

0+

cel / pull-postmsg



Tree: 77a1bfaba1bb16319fa986e845f5669830fbafce

Files: 77a1bfaba1bb16319fa986e845f5669830fbafce / README.md

1338 bytesRaw

pull-postmsg

pull-stream for bidirectional communication between frames using window.postMessage

var Postmsg = require('pull-postsg')
var duplex = Postmsg(win, origin)

Note that the stream does not propagate backpressure or errors, so if you need those, you have to emulate them at a higher level.

See also

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