View Directory | Revision Log | View Changeset
/hippo/hippo-cms7/services/services-autoreload
Revision 57667 - Directory Listing - [select for diffs]
Modified Fri Jan 8 16:31:09 2016 UTC (4 years, 7 months ago) by abanck
Diff to previous 57594
CMS-9863: Update copyright year to 2016
Revision 57594 - Directory Listing - [select for diffs]
Modified Fri Jan 8 14:29:42 2016 UTC (4 years, 7 months ago) by abanck
Diff to previous 56183
CMS-9856: Update copyright year to 2016
Revision 56183 - Directory Listing - [select for diffs]
Modified Wed Oct 21 16:43:15 2015 UTC (4 years, 9 months ago) by abanck
Diff to previous 56182
CMS-9613: prepare for next development iteration
Revision 56182 - Directory Listing - [select for diffs]
Modified Wed Oct 21 16:43:13 2015 UTC (4 years, 9 months ago) by abanck
Diff to previous 56181
CMS-9613: copy for tag hippo-services-autoreload-2.1.0
Revision 56181 - Directory Listing - [select for diffs]
Modified Wed Oct 21 16:43:10 2015 UTC (4 years, 9 months ago) by abanck
Diff to previous 56180
CMS-9613: prepare release hippo-services-autoreload-2.1.0
Revision 56180 - Directory Listing - [select for diffs]
Modified Wed Oct 21 16:42:22 2015 UTC (4 years, 9 months ago) by abanck
Diff to previous 56074
CMS-9613: Update project for release release 10.1.0
Revision 56074 - Directory Listing - [select for diffs]
Modified Tue Oct 13 15:55:27 2015 UTC (4 years, 9 months ago) by abanck
Diff to previous 55983
CMS-16: Bump internal dependency properties to use the current (snapshot) 10.2 versions
Revision 55983 - Directory Listing - [select for diffs]
Modified Tue Oct 13 11:52:22 2015 UTC (4 years, 9 months ago) by abanck
Diff to previous 55982
CMS-9583: prepare for next development iteration
Revision 55982 - Directory Listing - [select for diffs]
Modified Tue Oct 13 11:52:20 2015 UTC (4 years, 9 months ago) by abanck
Diff to previous 55981
CMS-9583: copy for branch hippo-services-autoreload-2.1.x
Revision 55981 - Directory Listing - [select for diffs]
Modified Tue Oct 13 11:52:17 2015 UTC (4 years, 9 months ago) by abanck
Diff to previous 55955
CMS-9583: prepare branch hippo-services-autoreload-2.1.x
Revision 55955 - Directory Listing - [select for diffs]
Modified Tue Oct 13 10:10:39 2015 UTC (4 years, 9 months ago) by abanck
Diff to previous 55268
CMS-16: Bump internal dependency properties to use the current (snapshot) versions
Revision 55268 - Directory Listing - [select for diffs]
Modified Tue Aug 11 13:23:02 2015 UTC (4 years, 11 months ago) by abanck
Diff to previous 55267
CMS7-9483: prepare for next development iteration
Revision 55267 - Directory Listing - [select for diffs]
Modified Tue Aug 11 13:20:21 2015 UTC (4 years, 11 months ago) by abanck
Diff to previous 55196
CMS7-9483: Create 10.0.x maintenance branch

Revision 55196 - Directory Listing - [select for diffs]
Modified Tue Aug 11 12:14:41 2015 UTC (4 years, 11 months ago) by abanck
Diff to previous 55195
CMS7-9483: Create branches folder for services-autoreload

Revision 55195 - Directory Listing - [select for diffs]
Modified Tue Aug 11 12:13:39 2015 UTC (4 years, 11 months ago) by abanck
Diff to previous 55050
CMS7-9483: prepare branch hippo-services-autoreload-2.0.x
Revision 55050 - Directory Listing - [select for diffs]
Modified Mon Jul 20 11:00:03 2015 UTC (5 years ago) by abanck
Diff to previous 55049
CMS7-9455: Add missing license and notice files to tag

Revision 55049 - Directory Listing - [select for diffs]
Modified Mon Jul 20 10:54:44 2015 UTC (5 years ago) by abanck
Diff to previous 54926
CMS7-9455: Add license and notice files for the services-autoreload project
Revision 54926 - Directory Listing - [select for diffs]
Modified Mon Jul 13 12:18:23 2015 UTC (5 years ago) by abanck
Diff to previous 54925
CMS7-9452: prepare for next development iteration
Revision 54925 - Directory Listing - [select for diffs]
Modified Mon Jul 13 12:18:20 2015 UTC (5 years ago) by abanck
Diff to previous 54924
CMS7-9452: copy for tag hippo-services-autoreload-2.0.0
Revision 54924 - Directory Listing - [select for diffs]
Modified Mon Jul 13 12:18:18 2015 UTC (5 years ago) by abanck
Diff to previous 54923
CMS7-9452: prepare release hippo-services-autoreload-2.0.0
Revision 54923 - Directory Listing - [select for diffs]
Modified Mon Jul 13 12:17:54 2015 UTC (5 years ago) by abanck
Diff to previous 54897
CMS7-9452: Prepare 2.0.0 release
Revision 54897 - Directory Listing - [select for diffs]
Modified Sat Jul 11 01:32:38 2015 UTC (5 years ago) by adouma
Diff to previous 53745
CMS7-9450: Switch to using semantic versioning for all CMS 10 modules
- old version x.y.z => (x+1).0.0
- bumped to latest project or release parent pom
- also updated copyright year where needed
- cleaned up/moved dependency version properties to main pom.xml from child pom(s)
Revision 53745 - Directory Listing - [select for diffs]
Modified Mon May 4 10:37:27 2015 UTC (5 years, 3 months ago) by meggermont
Diff to previous 53619
CMS7-9199 revert dependency and parent SNAPSHOT bumping
Revision 53619 - Directory Listing - [select for diffs]
Modified Mon May 4 08:52:23 2015 UTC (5 years, 3 months ago) by meggermont
Diff to previous 53615
CMS7-9199 bump parent and dependencies back to SNAPSHOT
Revision 53615 - Directory Listing - [select for diffs]
Modified Mon May 4 08:50:11 2015 UTC (5 years, 3 months ago) by meggermont
Diff to previous 53614
CMS7-9199: prepare for next development iteration
Revision 53614 - Directory Listing - [select for diffs]
Modified Mon May 4 08:50:07 2015 UTC (5 years, 3 months ago) by meggermont
Diff to previous 53613
CMS7-9199: copy for tag hippo-services-autoreload-1.05.00
Revision 53613 - Directory Listing - [select for diffs]
Modified Mon May 4 08:50:02 2015 UTC (5 years, 3 months ago) by meggermont
Diff to previous 53612
CMS7-9199: prepare release hippo-services-autoreload-1.05.00
Revision 53612 - Directory Listing - [select for diffs]
Modified Mon May 4 08:48:17 2015 UTC (5 years, 3 months ago) by meggermont
Diff to previous 53062
CMS7-9199 bump parent and dependencies to FCS tag
Revision 53062 - Directory Listing - [select for diffs]
Modified Tue Apr 14 10:36:29 2015 UTC (5 years, 3 months ago) by tjeger
Diff to previous 53061
CMS7-9086: restore deps
Revision 53061 - Directory Listing - [select for diffs]
Modified Tue Apr 14 10:35:18 2015 UTC (5 years, 3 months ago) by tjeger
Diff to previous 53060
CMS7-9086: rollback changes from release preparation of hippo-services-autoreload-1.05.00-alpha-1
Revision 53060 - Directory Listing - [select for diffs]
Modified Tue Apr 14 10:35:14 2015 UTC (5 years, 3 months ago) by tjeger
Diff to previous 53059
CMS7-9086: copy for tag hippo-services-autoreload-1.05.00-alpha-1
Revision 53059 - Directory Listing - [select for diffs]
Modified Tue Apr 14 10:35:10 2015 UTC (5 years, 3 months ago) by tjeger
Diff to previous 53057
CMS7-9086: prepare release hippo-services-autoreload-1.05.00-alpha-1
Revision 53057 - Directory Listing - [select for diffs]
Modified Tue Apr 14 10:33:27 2015 UTC (5 years, 3 months ago) by tjeger
Diff to previous 51810
CMS7-9086: prepare deps
Revision 51810 - Directory Listing - [select for diffs]
Modified Thu Feb 26 12:49:00 2015 UTC (5 years, 5 months ago) by uhommes
Diff to previous 48441
CMS7-8890 make sure modules load in correct order according to dependency hierarchy
Revision 48441 - Directory Listing - [select for diffs]
Modified Wed Jan 28 15:40:59 2015 UTC (5 years, 6 months ago) by abanck
Diff to previous 48368
CMS7-8719: Rename scm info for autoreload from webresources
Revision 48368 - Directory Listing - [select for diffs]
Modified Mon Jan 26 14:19:19 2015 UTC (5 years, 6 months ago) by uhommes
Diff to previous 47145
CMS7-8576 use https for onehippo maven repository
Revision 47145 - Directory Listing - [select for diffs]
Modified Thu Nov 13 08:38:59 2014 UTC (5 years, 8 months ago) by meggermont
Diff to previous 47084
CHANNELMGR-75 Small improvements after code-review

Moved setting isReloading flag and logging closer to where the actual reload is done.
Clarified why isReloading is set to true while disconnecting.
Revision 47084 - Directory Listing - [select for diffs]
Modified Mon Nov 10 17:00:11 2014 UTC (5 years, 8 months ago) by mdenburger
Diff to previous 47080
CMS7-8444: add unit tests for AutoReloadServer
Revision 47080 - Directory Listing - [select for diffs]
Modified Mon Nov 10 16:01:52 2014 UTC (5 years, 8 months ago) by mdenburger
Diff to previous 47062
CMS7-8442: check JavaScript with jslint

The circular dependency of functions connect -> onClose -> reconnect is valid, so added 'reconnect' as a global to the jslint config to make it happy.
Revision 47062 - Directory Listing - [select for diffs]
Modified Fri Nov 7 16:37:33 2014 UTC (5 years, 9 months ago) by mdenburger
Diff to previous 46944
CMS7-8441: only try to reconnect when a connection has been established before
Revision 46944 - Directory Listing - [select for diffs]
Modified Tue Oct 28 09:20:15 2014 UTC (5 years, 9 months ago) by aschrijvers
Diff to previous 46943
CMS7-16 remove register of service that is not required
Revision 46943 - Directory Listing - [select for diffs]
Modified Tue Oct 28 08:54:17 2014 UTC (5 years, 9 months ago) by mdenburger
Diff to previous 46939
CMS7-8406: use console.log instead of console.debug, and check whether console.log is available before logging

IE10 does not support console.debug, while console.log is supported in all recent browsers.
Revision 46939 - Directory Listing - [select for diffs]
Modified Mon Oct 27 16:58:59 2014 UTC (5 years, 9 months ago) by mdenburger
Diff to previous 46903
CMS7-8404: use 'beforeunload' instead of 'unload' event to close websocket connection before page reload
Revision 46903 - Directory Listing - [select for diffs]
Modified Fri Oct 24 08:02:51 2014 UTC (5 years, 9 months ago) by mdenburger
Diff to previous 46902
CMS7-16: make read buf size a private constant
Revision 46902 - Directory Listing - [select for diffs]
Modified Fri Oct 24 08:01:19 2014 UTC (5 years, 9 months ago) by mdenburger
Diff to previous 46875
CMS7-16: use interface instead of implementation as field type
Revision 46875 - Directory Listing - [select for diffs]
Modified Wed Oct 22 10:35:24 2014 UTC (5 years, 9 months ago) by aschrijvers
Diff to previous 46872
CMS7-8367 remove prefix exclusion as bootstrapped too late which is not allowed. Hardcode separate /autoreload skip in hst
Revision 46872 - Directory Listing - [select for diffs]
Modified Wed Oct 22 10:16:21 2014 UTC (5 years, 9 months ago) by mdenburger
Diff to previous 46870
CMS7-8367: use actual context path in generated JavaScript
Revision 46870 - Directory Listing - [select for diffs]
Modified Wed Oct 22 09:18:50 2014 UTC (5 years, 9 months ago) by aschrijvers
Diff to previous 46803
CMS7-8367 trivial: imports and alike
Revision 46803 - Directory Listing - [select for diffs]
Modified Fri Oct 17 15:33:58 2014 UTC (5 years, 9 months ago) by mdenburger
Diff to previous 46780
CMS7-8367: remove explicit close before page reload

The websocket will always be closed in the disconnect() function on page unload
Revision 46780 - Directory Listing - [select for diffs]
Modified Thu Oct 16 12:36:44 2014 UTC (5 years, 9 months ago) by mdenburger
Diff to previous 46724
CMS7-8367: initial implementation of the auto-reload service

The service provided a JavaScript snippet that lets a browser connect to the auto-reload server using WebSockets. Whenever #broadcastPageReload is called, a 'reloadPage' message is sent to all connected browsers that will then reload the current page. 

When a WebSocket connection is closed unexpectedly (e.g. because the server is stopped), the JavaScript snippet tries to reconnect every five seconds for 10 minutes, and then gives up.

The auto-reload service is enabled by default. It can be toggled via the configuration parameter 'enabled'. Changes to the JCR configuration are picked up and effective immediately. The auto-reload service can also be disabled via code using the #setEnabled method.

The auto-reload service is supposed to be injected into Tomcat's shared/lib folder by Cargo, so it'll only be available during local development. For that reason only dependencies can be used that are available in the shared/lib folder. The WebSockets API implementation is provided by Tomcat.
Revision 46724 - Directory Listing - [select for diffs]
Modified Tue Oct 14 12:51:18 2014 UTC (5 years, 9 months ago) by mdenburger
Diff to previous 46723
CMS7-8367: create svn trunk location for autoreload service

Revision 46723 - Directory Listing - [select for diffs]
Added Tue Oct 14 12:50:53 2014 UTC (5 years, 9 months ago) by mdenburger
CMS7-8367: create svn location for autoreload service

Convenience Links