post-message-stream
Sets up a duplex object stream over window.postMessage
var streamA = name: 'thing one' target: 'thing two' var streamB = name: 'thing two' target: 'thing one' streamBstreamA
constructor arguments
var messageStream = // required // name of stream, used to differentiate // when multiple streams are on the same window name: 'source' // name of target stream target: 'sink' // optional // window to send the message to // default is `window` window: iframecontentWindow