|
@@ -61,6 +61,14 @@
|
|
{{-- pdfjs --}}
|
|
{{-- pdfjs --}}
|
|
<script src="https://mozilla.github.io/pdf.js/build/pdf.js"></script>
|
|
<script src="https://mozilla.github.io/pdf.js/build/pdf.js"></script>
|
|
|
|
|
|
|
|
+ {{-- WebSockets --}}
|
|
|
|
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/sockjs-client/1.5.0/sockjs.min.js"
|
|
|
|
+ integrity="sha512-5yJ548VSnLflcRxWNqVWYeQZnby8D8fJTmYRLyvs445j1XmzR8cnWi85lcHx3CUEeAX+GrK3TqTfzOO6LKDpdw=="
|
|
|
|
+ crossorigin="anonymous"></script>
|
|
|
|
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/stomp.js/2.3.3/stomp.min.js"
|
|
|
|
+ integrity="sha512-iKDtgDyTHjAitUDdLljGhenhPwrbBfqTKWO1mkhSFH3A7blITC9MhYon6SjnMhp4o0rADGw9yAC6EW4t5a4K3g=="
|
|
|
|
+ crossorigin="anonymous"></script>
|
|
|
|
+
|
|
@yield('head')
|
|
@yield('head')
|
|
</head>
|
|
</head>
|
|
|
|
|
|
@@ -265,18 +273,32 @@
|
|
fastLoad('/patients/view/' + $(this).attr('data-target-uid'), true, false, false);
|
|
fastLoad('/patients/view/' + $(this).attr('data-target-uid'), true, false, false);
|
|
return false;
|
|
return false;
|
|
});
|
|
});
|
|
-
|
|
|
|
- window.setInterval(function() {
|
|
|
|
- $.get('/current-work', function(_data) {
|
|
|
|
- $('.current-work').html(_data);
|
|
|
|
- initFastLoad($('.current-work'));
|
|
|
|
- });
|
|
|
|
- }, 15000); // once in 15 seconds
|
|
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
<script src="/js/stag-popup.js"></script>
|
|
<script src="/js/stag-popup.js"></script>
|
|
<script src="/js/option-list.js"></script>
|
|
<script src="/js/option-list.js"></script>
|
|
@include('app/pdf/viewer')
|
|
@include('app/pdf/viewer')
|
|
|
|
+ <script>
|
|
|
|
+ let socket = new SockJS("{{ config('app.backend_ws_url') }}");
|
|
|
|
+ window.socketClient = Stomp.over(socket);
|
|
|
|
+ window.socketClient.connect({}, (frame) => {
|
|
|
|
+
|
|
|
|
+ window.socketClient.send("/app/register", {}, // register self
|
|
|
|
+ JSON.stringify({
|
|
|
|
+ sessionKey: '{{$performer->session_key}}'
|
|
|
|
+ })
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ window.socketClient.subscribe("/user/topic/newMcpRequest", function(message) {
|
|
|
|
+ console.log("Received new mcp request: ", message);
|
|
|
|
+ }); // once in 15 seconds
|
|
|
|
+
|
|
|
|
+ window.socketClient.subscribe("/user/topic/removeMcpRequest", function(message) {
|
|
|
|
+ console.log("An mcp request has been removed: ", message);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ </script>
|
|
</body>
|
|
</body>
|
|
|
|
|
|
</html>
|
|
</html>
|