forcedotcom / quiz-player-app

Multiplayer quiz app built on Salesforce technology (player app)
Creative Commons Zero v1.0 Universal
13 stars 31 forks source link

Phase change in on-platform does not trigger websocket change #2

Closed annyhe closed 5 years ago

annyhe commented 5 years ago

What I tried On platform, tried changing the phase on the Quiz Session object itself.

Screen Shot 2019-09-24 at 8 40 01 AM

Also tried clicking through the Next button in the UI. Also tried logging for BackgroundOperation records, did not see any.

Screen Shot 2019-09-24 at 8 48 36 AM

What's the problem This LWC OSS app works with registration (user is registered), however it is not reacting to CDC. In the Network panel no API requests are fired, other than the initial http://localhost:3002/api/quiz-sessions and subsequent http://localhost:3002/api/answers

Was expecting on Phase change, API request with the updated Phase be logged. This functionality works sometimes, but now it does not.

Do we need to enable External Change Data Capture? https://help.salesforce.com/articleView?id=external_object_change_tracking_enable.htm&type=5

annyhe commented 5 years ago

Ooops just had to restart the LWC OSS app, to get quiz session phase updates streaming.