status.js

PHOTO EMBED

Sat Oct 02 2021 06:41:41 GMT+0000 (UTC)

Saved by @delitescere #lowjs #hotwire #thymeleaf #html

// #ProgressiveEnhancement
(window['EventSource'] && window['Turbo']) ?
  Turbo.connectStreamSource(new EventSource('/status.stream')) :
  console.warn('Turbo Streams over SSE not available');
content_copyCOPY

https://bitbucket.org/delitescere/status.gallery/src/main/src/main/resources/static/scripts/status.js