Typo fix.
Typo fix.
Make websocket path relative to Shiny page path

This is necessary for proxy situations that don't override the
Shiny.createSocket function (so, not including Shiny Server,
but more like Nginx, HAProxy, and a future version of RStudio
Server).

Without the path being preserved, it's impossible for these
proxies to know that the URL should be forwarded to the host
and port that belongs to Shiny.
save coordmap in $el.data() so it can be dynamically retrieved

6161eaa was an inappropriate fix

(jcheng: cherry-picked from @yihui/master)
Merge pull request #234 from crtahlin/patch-1

Typo fix.
Merge pull request #235 from crtahlin/patch-2

Typo fix.
Conditional panel expressions were broken for typed inputs
choose a random port for runApp and continue to use it for the duration of the session unless explicitly overridden
use .globals rather than .runContext
Merge pull request #245 from rstudio/feature/random-port

choose a random port for runApp
Merge pull request #243 from jcheng5/master

Conditional panel expressions were broken for typed inputs
always update .data('hover-func') because data.coordmap may change

see the bug report at https://groups.google.com/forum/#!topic/shiny-discuss/K6pVtqGguBE
Revert "always update .data('hover-func') because data.coordmap may change"

This reverts commit 6161eaa8414e2f179d7735521345df79fb65a2a1.
cleans up two instances of tryCatch() that can be avoided for #249
closes #249; use try2() instead of try(), so that users can set options(shiny.try = FALSE) to disable try()

closes #217 as well (duplciate)