0.2.7 • Published 6 years ago

@liquid-state/iwa-desktop v0.2.7

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

IWA Desktop Environment

A set of functions and utilities to make it easy to run IWAs in a desktop environment. This can be used to run a full desktop version of an application in production or to make developing IWAs simpler by modelling native behaviours in a browser.

Basics

To get a simple working environment quickly you'll need to follow a few quick steps.

  1. Replace the communicator with the noopCommunicator from this package
import Desktop from '@liquid-state/iwa-desktop'

const app = createApp(definition, Desktop.createNoopCommunicator());
  1. Wrap the resulting communicator in the default middleware
Desktop.injectDefaultMiddleware(app.communicator);
  1. Add any additional middleware you need (eg config)
import { middleware } from '@liquid-state/iwa-desktop';
app.communicator.addOnSendMiddleware(middleware.config({
    AWS_REGION: 'us-east-2',
    AWS_USERPOOL_ID: 'abc123'
}));

Available middleware

OnSend

  • navigation (included in default)
  • config

OnRecieve

None

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago