Index: lams_tool_laqa/web/learning/AnswersContent.jsp =================================================================== diff -u -r3f64433c4c8241c2ecccac71a380267db16b7ea9 -rf86004309489cb81f283d1962b481b4bbb3facd6 --- lams_tool_laqa/web/learning/AnswersContent.jsp (.../AnswersContent.jsp) (revision 3f64433c4c8241c2ecccac71a380267db16b7ea9) +++ lams_tool_laqa/web/learning/AnswersContent.jsp (.../AnswersContent.jsp) (revision f86004309489cb81f283d1962b481b4bbb3facd6) @@ -189,6 +189,16 @@ }); + <%-- 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 = 'qa-leader-change-refresh-${generalLearnerFlowDTO.toolSessionID}'; + // if the trigger is recognised, the following action occurs + commandWebsocketHook = function() { + location.reload(); + }; + });