I'm developing an R shiny application, however I need to edit the source js code of the Shiny package slightly. Specifically, I want to modify and edit the function:
value: function $sendMsg(msg) {
if (!this.$socket.readyState) {
this.$pendingMessages.push(msg);
} else {
this.$socket.send(msg);
}
}
which, in my version of shiny (version 1.7.1), is line 12339
of the shiny.js
file.
However when downloading the specific version of Shiny from github (i.e. version 1.7.1), updating the relevant file and building the package, the js does not seem to update accordingly.
Hence, can someone point me in right the direction, to how I can update my local clone of the Shiny package with my own js code? Do i need to build the TypeScript files or how does it work?