-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS document callbacks and disconnect event #12370
Conversation
mattpap
commented
Sep 11, 2022
•
edited
Loading
edited
- maybe Need indication on disconnect/session timeout #3519
- fixes Hook for callback upon document init #4272
- fixes [FEATURE] Add JS event on Websocket disconnect #11328
Codecov Report
@@ Coverage Diff @@
## branch-3.1 #12370 +/- ##
===========================================
Coverage 92.32% 92.33%
===========================================
Files 314 314
Lines 19797 19831 +34
===========================================
+ Hits 18277 18310 +33
- Misses 1520 1521 +1 |
59de962
to
b7875d4
Compare
87034fc
to
276203f
Compare
276203f
to
4662b53
Compare
4662b53
to
de5e846
Compare
de5e846
to
a77406d
Compare
289dbcd
to
3e5f673
Compare
@mattpap I would suggest adding and new subsection and example code snippet here: https://docs.bokeh.org/en/latest/docs/user_guide/interaction/js_callbacks.html#examples It doesn't have to be a complete example (just a code block will do) since it is for apps which won't "work" on the docs, but the goal is to have a defined URL that we can point users to for discussion about this important feature. |
3e5f673
to
2c10df4
Compare
* JS document callbacks and disconnect event * Improve Document.on_event() API in JS * Redesign handling of connection events * Move doc_js_events under interaction/js_callbacks * Make show()/save() respect curdoc's JS callbacks * Make examples' tests work * Add Document.js_on_event() to match Model's API * Add preliminary documentation