mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-07 05:04:58 -05:00
Add shiny:sessionInit event (#1568)
* added a shiny:sessionInit JS event that is triggered at the end of the session's initialize method * new entry * update NEWS * correct version number in NEWS.md * fix typo
This commit is contained in:
committed by
Winston Chang
parent
dae11765bc
commit
cf21e987f2
@@ -631,6 +631,7 @@ var ShinyApp = function() {
|
||||
addMessageHandler('config', function(message) {
|
||||
this.config = {workerId: message.workerId, sessionId: message.sessionId};
|
||||
if (message.user) exports.user = message.user;
|
||||
$(document).trigger('shiny:sessioninitialized');
|
||||
});
|
||||
|
||||
addMessageHandler('busy', function(message) {
|
||||
|
||||
Reference in New Issue
Block a user