Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The ability of getting a note on websocket should be replaced with a promisified ajax call.
By Design any entity that gets initialized should happen through API
and any real time exchange of data happens through WS.
Getting note is request for initialization which can happen over API but for real-time collaboration we cannot use api that is when we use websockets.
The advantage of making it a promisified callback is:
1. The UI content that we can write in the paragraph becomes more cleaner by giving the developer the exact instance of the rendered page where the scope variables are not undefined, that is. As of now if we try to use the scope bounded variables using native javascript there is most likely scenario where the value on scope is "undefined" .
2. For slower internet connections an interceptor can be given so that we can display custom progress status till the note object comes