using together.js for collaborative shinyapps?

Has anyone used together.js to make a collaborative shinyapp? I thought I had gotten it to work on shinyapps.io (i.e., the 'together' window shows up and I can create a collaborative link). I joined using the generate link on my laptop but don't see changes happening on my desktop. You can try the no-yet-working-version by clicking the "collaborate" icon as shown below from the app here: https://vnijs.shinyapps.io/radiant-data

Hopefully it is possible to get this to work with shiny!

image

https://togetherjs.com/

Relevant source code: https://github.com/radiant-rstats/radiant.data/blob/master/inst/app/global.R
Full app source code: https://github.com/radiant-rstats/radiant.data

If you look at the console, there's a few errors being thrown by WebSocket.

It seems development for TogetherJS was stopped by Mozilla, and the hub server is no longer available.

You can find more information here, as well as a way to fix the problem https://github.com/jsfiddle/togetherjs/issues/1172

There you'll find this link to a helpful YouTube tutorial, showing you how to start your own hub using Glitch https://www.youtube.com/watch?v=dsMLaZH17t0&feature=youtu.be

Thanks for your reply @jdb! As you can see below together.js is now being maintained by the JSFiddle team. Using the information in the issue you sent I was able to get sharing somewhat working. When I move the cursor around on my laptop, I do see that on my desktop which is very cool. However, the clicks on one computer (e.g., on a tab or selecting variables) are not reflected on the other computer.

I wonder if this is because shiny creates single page apps, the way my app is organized, or some other reason. Have you been able to get it to work with shiny apps in the past?

https://vnijs.shinyapps.io/radiant-data

FYI I did see a few uncaught errors at some point ...

Update: After adding "TogetherJSConfig_cloneClicks = true" now switching tabs and some versions of selectInput work! However, check boxes, selectizeInputs, etc. do not and neither do changes to a shinyAce text editor.

image

tags$script('TogetherJSConfig_hubBase = "https://togetherjs-hub.glitch.me/"; TogetherJSConfig_cloneClicks = true;'),
tags$script(src = "https://togetherjs.com/togetherjs-min.js"),

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.