rstudio / shinycannon

Load generation tool, part of shinyloadtest
https://rstudio.github.io/shinyloadtest/
15 stars 6 forks source link

options(shiny.autoreload=TRUE) breaks recordings #53

Open jcheng5 opened 4 years ago

jcheng5 commented 4 years ago

The error message is "Tried to WS_OPEN but already have a websocket". If you're a user who is encountering this, remove options(shiny.autoreload=TRUE) from your app and re-record the test.

This happens because autoreload is implemented by opening a second websocket to the server. shinytest records this, and shinycannon doesn't know what to make of two websockets being opened.

We should fix this by having shinytest skip recording the autoreload websocket, but it might also be good for shinycannon to detect and ignore WS_OPEN where the url is "/autoreload/".