postaljs / postal.federation Goto Github PK
View Code? Open in Web Editor NEWpostal.js add-on providing base 'federation' facilities for linking remote instances of postal together.
License: Other
postal.js add-on providing base 'federation' facilities for linking remote instances of postal together.
License: Other
I will be re-writing this in ES6 and providing ES5 & ES6 builds (via babel), and updating test coverage and docs.
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.
at line #12, it seems like
Wrong:
return factory(require("lodash"), postal, require("riveter"));
Correct:
return factory(require("lodash"), postal, require("riveter")());
Best regards,
Needs to support two way and one way....
Is it possible (even with xframe) to federate across separate browser windows ?
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
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.