rstudio / shiny-examples

Other
1.96k stars 3.78k forks source link

Add WebSocket example #124

Closed jcheng5 closed 5 years ago

jcheng5 commented 5 years ago

I think there's an opportunity to do something better for WebSocket + Shiny eventually, to have a more reactivity-oriented (rather than event-oriented) API that you can opt for. But this at least proves that the two do work together just fine.

(The event handlers don't have a reactive domain, that threw me for a little bit as shinyjs::toggleState expects them and doesn't give you a way to pass them in explicitly)

chuxinyuan commented 9 months ago

The example works locally, but deployment to a shiny server never works.