Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom metadata in federation handshake #6

Open
DaniHaag opened this issue Sep 19, 2013 · 0 comments
Open

custom metadata in federation handshake #6

DaniHaag opened this issue Sep 19, 2013 · 0 comments

Comments

@DaniHaag
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant