This commit is contained in:
Barbara Borges Ribeiro
2017-01-25 17:39:16 +00:00
parent 73446af330
commit 99b8e5b303
6 changed files with 19 additions and 10 deletions

View File

@@ -202,11 +202,11 @@ workerId <- local({
#' \item{\code{singletons} - for internal use}
#' \item{\code{url_protocol}, \code{url_hostname}, \code{url_port},
#' \code{url_pathname}, \code{url_search}, \code{url_hash_initial}
#' and \code{url_hash} can be used to get the components of the URL
#' that was requested by the browser to load the Shiny app page.
#' These values are from the browser's perspective, so neither HTTP
#' proxies nor Shiny Server will affect these values. The
#' \code{url_search} value may be used with \code{\link{parseQueryString}}
#' and \code{url_hash} can be used to get the components of the URL
#' that was requested by the browser to load the Shiny app page.
#' These values are from the browser's perspective, so neither HTTP
#' proxies nor Shiny Server will affect these values. The
#' \code{url_search} value may be used with \code{\link{parseQueryString}}
#' to access query string parameters.
#' }
#' }
@@ -761,6 +761,7 @@ ShinySession <- R6Class(
sessionId = self$token
)
)
if (!is.null(self$user)) self$sendUserInfo(user = self$user)
},
rootScope = function() {
self

View File

@@ -1236,6 +1236,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
exports.resetBrush(message.brushId);
});
addMessageHandler('user', function (message) {
console.log(message.user);
exports.user = message.user;
});
// Progress reporting ====================================================
var progressHandlers = {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -738,6 +738,10 @@ var ShinyApp = function() {
exports.resetBrush(message.brushId);
});
addMessageHandler('user', function(message) {
console.log(message.user);
exports.user = message.user;
});
// Progress reporting ====================================================
var progressHandlers = {