Giter Club home page Giter Club logo

openfin-multi-window-communication's Introduction

Multi Window Communication

This example shows three different ways of pushing out messages from a single source to multiple windows.

  • Broadcast Channel using a Shared WebWorker
  • Broadcast Channel from the Publisher Page
  • OpenFin IAB Message Bus from the Publisher Page (only within OpenFin)

You may want to have one window/worker acting as the connection to a websocket and then have that push out data across multiple windows.

This hasn't been built as an example of best practice. The goal is to give you a way of defining what type of message you want to share, how you want to share that message and if there is a threshold in milliseconds you do not want a message to exceed.

Running the example

You can use the link below to run the browser and OpenFin version (if you have OpenFin installed) of this example.

CodeSandbox: https://zxf6r.csb.app/

Github: https://johnman.github.io/openfin-multi-window-communication/index.html

If you want to browse the project using codesandbox you can visit:

https://codesandbox.io/s/openfin-multi-window-communication-zxf6r

Customising this project:

Some things you will need to update:

In config/app.window.fin.json and app.csb.fin.json update:

  • uuid : make the uuid unique
  • visit https://www.openfin.co and request a trial/developer license
  • update the url field to reflect your codesandbox url (or server)
  • update the application icon to reflect your own icon
  • update the name and description to reflect your application

More information about OpenFin:

openfin-multi-window-communication's People

Contributors

johnman avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.