Skip to content

Commit

Permalink
0.8.1
Browse files Browse the repository at this point in the history
0.8.1
  • Loading branch information
alallier committed Jun 5, 2016
1 parent 3148554 commit 167f58b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.8.1 / 2016-06-05
------------------
- Allow reload from node server. See: https://github.com/jprichardson/reload/pull/38

0.8.0 / 2015-12-21
------------------
- fixed `hostname` flag. See: https://github.com/jprichardson/reload/pull/34
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,17 @@ How does it work?

It's actually stupidly simple. We leverage `supervisor` to restart the server if any file changes. The client side keeps a websocket open, once the websocket closes, the client sets a timeout to reload in approximately 300 ms (or any other time you'd like, refer to [API](https://github.com/jprichardson/reload#api) below). Simple huh?

Reload on your terms
---
If you would like to fire the reload event on your own terms you can use fire a reload event by calling `reload()` yourself. An example is shown below:

```
reloadServer = reload(server, app, 1000);
watch.watchTree(__dirname + "/public", function (f, curr, prev) {
console.log("Trying to reload...");
reloadServer.reload();
});
```

API
---
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reload",
"version": "0.8.0",
"version": "0.8.1",
"description": "Node.js module to refresh and reload your code in your browser when your code changes. No browser plugins required.",
"repository": {
"type": "git",
Expand All @@ -14,6 +14,9 @@
"development"
],
"author": "JP Richardson <jprichardson@gmail.com>",
"contributors": [
"Alexander J. Lallier <alexanderlallier@aol.com>"
],
"license": "MIT",
"dependencies": {
"sockjs": "~0.3.5",
Expand Down

0 comments on commit 167f58b

Please sign in to comment.