Index: lams_tool_scratchie/web/pages/learning/learning.jsp =================================================================== diff -u -r31c0a35b614dd390e386a617cc85827c4d00de47 -r281e19ba98aa6bf38fc1f25507a9098304d668fb --- lams_tool_scratchie/web/pages/learning/learning.jsp (.../learning.jsp) (revision 31c0a35b614dd390e386a617cc85827c4d00de47) +++ lams_tool_scratchie/web/pages/learning/learning.jsp (.../learning.jsp) (revision 281e19ba98aa6bf38fc1f25507a9098304d668fb) @@ -82,6 +82,17 @@ etherpadInitMethods[groupId](); } }); + + <%-- Connect to command websocket only if it is learner UI --%> + + // command websocket stuff for refreshing + // trigger is an unique ID of page and action that command websocket code in Page.tag recognises + commandWebsocketHookTrigger = 'scratchie-leader-change-refresh-${toolSessionID}'; + // if the trigger is recognised, the following action occurs + commandWebsocketHook = function() { + location.reload(); + }; + }); //scratch image (used by both scratchMcq() and scratchVsa())