1.0.0 • Published 8 years ago

postmessage-client v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

postmessage-client Build Status

NPM

Installation

npm install --save postmessage-client

Usage

You must use this module with postmessage-server module on the other side (remote window)

es6

import Client from '../src';

const client = new Client();

client.connect(window, window.opener);
client.get('test/route', {id: '1'}).then(data => {
    console.log(data);
});

es5

var PMClient = require('postmessage-client');

var client = new PMClient();
client.connect(window.opener);
client.get('test/route').then(function (data) {
    console.log(data);
});
1.0.0

8 years ago

0.1.3

8 years ago

0.1.1

8 years ago