only remove /websocket/ from path if it's present
Merge pull request #261 from rstudio/bugfix/shiny-websocket-path

Only remove /websocket/ from path if it's present