Review protocol for consistency #1212
Labels
protocol
resolved-locked
Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
With #1207, it is painfully clear that we should review the protocol messages for consistency. For example, the sync messages are needlessly different depending on the direction between the backend and the frontend.
Also, it's very weird that the comm_open messages from the frontend to the backend give a magic string, but the comm_open messages from the backend to the frontend just give the state. I think the problem here is that you can have multiple kernel-side implementations of the same syncing data model (like IntProgress and FloatProgress I believe use the exact same javascript model with different defaults). This is especially weird since each model on the front end should have the same defaults as the model in the kernel, but can't if there is a one to many relationship. Perhaps we should insist on basically having a 1:1 correspondence between frontend and backend models, so that the synced attributes define the widget.
The text was updated successfully, but these errors were encountered: