Hi, yes, when you wrote it, it looks as the best solution for me, but with some time taken to think about it, I'm finding it not to be the right solution for me. E.g. for this case
All students all rolled to test, all of them are on e.g. 3rd wait-in-progress page.
When teacher broadcasts an action to let them go to the next page, everything works fine.
But, there can happen, that someone losts its connection or get some client's PC issue and he/she must start from beggining. Then it must be possible to him/her to catch up all other students (go through w-i-p pages without teacher's action).
So I'm not sure here about broadcasting. Maybe some "global caching" where will be for each classroom stored array of wip pages which are currently allowed e.g.(page=>isAllowed): {1=>true, 7=> true, 12=>true, 19=>false,...} (maybe only one integer with last allowed page number), but then there is still problem how to make all clients have always actual cache. It means to have some ajax interval, which each second check controller for cache content?
Is it ok?
Is it possible to use Laravel's cache as global cache for all clients?
Or is there another solution to use (best to be standalone, not like broadcasting, where is required external service)?