TIM-JYU / TIM

TIM (The Interactive Material) is an open-source cloud-based platform for creating interactive learning documents.
https://tim.education/view/about/en-US
MIT License
13 stars 4 forks source link

document: Add pollDocumentViewInfo and global messages #3655

Closed dezhidki closed 1 month ago

dezhidki commented 1 month ago

Testi: https://timdevs01-4.it.jyu.fi/view/users/admin-admin/test-polling

Testatut tapaukset:

This commit allows polling for document view info route via a document setting:

pollDocumentViewInfo: 10000
pollDocumentViewInfoJitter: 3000

For now, this is implemented as polling, since there is no infrastructure for running WebSockets or implement Server Side Events.

This commit further makes use of this feature in two ways: