0

I'm trying to test Fluid Framework in a React app and in an Angular app. In both, I have the same error few seconds after app launch :

private handler() {
> 151 |     assert(this.runningState, "Running timer missing handler");
      | ^  152 |     const restart = this.runningState.restart;
  153 |     if (restart !== undefined) {
  154 |         // Restart with remaining time

Seems to be a connexion error with tinylidious server (socket) but I don't understand where is my mistake. Using 0.27 version.

Thank's for any ideas ;-)

5
  • Hey, did you base this code off a specific example? I'm trying to repro. Commented Nov 10, 2020 at 19:39
  • Without a further investigation, my guess is that we're calling a process out of order in the summarizer. Commented Nov 10, 2020 at 22:47
  • I confirm it's a pb within the ctor of the SummaryManager but don't understand why Commented Nov 11, 2020 at 9:15
  • 1
    delete nodemodules, update to react 17 and it works ;-) Now looking at angular app to correct it Commented Nov 11, 2020 at 9:57
  • Update zone.js and @angular-devkit/build-angular and works fine now. GREAT. Time to have fun ;-) Commented Nov 11, 2020 at 15:02

1 Answer 1

1

This issue may be caused by out of date dependencies. You can try deleting node_modules and reinstalling or upgrading major dependencies.

To talk to the need for a timer is also interesting. Fluid uses summaries to quickly get new clients up to speed on the content of a document. In a simplified implementation of Fluid, the state of a Fluid application is just the log of all operations in that document. For performance reasons, we summarize that state periodically so that new users don't need to run through every operation (for a long running application this could be hundreds of thousands of ops).

These Summaries are created based on heuristics, either by number of ops or by the timer that you're finding an issue with. Just so long as the app is summarized in some reasonable timeline, the app performance is improved.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.