Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sdgluck authored Jun 23, 2016
1 parent b58bcae commit 7fb4ef8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Makes communication between a client and service worker super easy...

## Import

__Client__

```js
// ES6
import msgr from 'msgr'
Expand All @@ -43,6 +45,17 @@ define(['msgr'], function (msgr) {/*...*/})
<script src="/node_modules/msgr/index.js"></script>
```

__Worker__

If you are bundling your SW then you can use the Import methods above.

Otherwise...

```js
// importScripts
importScripts('/node_modules/msgr/index.js')
```

## Initialise & Example

__Client: `msgr.client()`__
Expand Down

0 comments on commit 7fb4ef8

Please sign in to comment.