Giter VIP home page Giter VIP logo

postal.federation's People

Contributors

dcneiner avatar ifandelse avatar jordi-eyeos avatar rauhryan avatar rniemeyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

postal.federation's Issues

ES6 Conversion

I will be re-writing this in ES6 and providing ES5 & ES6 builds (via babel), and updating test coverage and docs.

Remove riviter dependency

Would it be possible to drop this dependency? It's nice to be able to use postal with only lodash as a requirement but as soon as federation is brought into play this little-used library is also required.

Need Tests

The spec folder is EMPTY

This needs to be remedied....

custom metadata in federation handshake

My use case is, I want to define and set the instanceId for a client within an iframe from the outer frame. I did not find any place where to properly hook in to the federation process.

Is this a supported pattern? Or is there another way to implement the use case above.

My idea was that I could exchange custom data between the federated clients on the federation handshake. To reset the instanceId within the iframe two federation handshakes would be done. The first handshake is based on an arbitrary instanceId for the iframe and the outer frame would post the target instanceId for the iframe in the federation pong message that it's sending as part of the handshake. When the iframe part is called back on signalReady it would basically set the passed instanceId using postal.instanceId() function which results in the "instanceId.changed" message.

EDIT: I created an inital solution how this could be solved can be found on my fork on
https://github.com/DaniHaag/postal.federation

Upgrade to lodash 4.x

Postal 2.x appears to depend on lodash 4 already. I know it's not required for node libraries to use the same version of a dependency, but it would be nice to see plugins using the same versions of a dependency as the library they're a plugin for.

IE 8 problems

Hi, i'm trying to test the postal.federation example on Internet Explorer 8....but it fails, and all the messages are not showed. I've seen in debug mode that the publish function in postal.js does not enter at this line when I try to send a message from the page to the iframes:
_.each(this.subscriptions[envelope.channel], function (subscribers) { // line 378

Does the library support this browser version?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.