Open Polkas opened 2 years ago
I can confirm that the API reference example is broken, but I just tested shiny run shiny/examples/send_custom_message/app.py
(as of e969764085e9800b9b9df65a7f87bad157e255c5) as well as:
cd shiny/examples
shiny static send_custom_message static
python3 -m http.server --directory static 8008
And everything seems to work as intended, so I think the issue might be specific to the API reference
It looks like the the only difference between the API reference example, and version in shiny/examples/send_custom_message/app.py
is that the selector is ""
instead of "<p>"
. I'm guessing this has to do with escaping when the API docs are generated. (Related to #163, #164)
send_custom_message
method inshiny.Session
is not work properly. I tested it locally and confirm that with the native pyshiny docs as has the same problem. Please check out the example: https://shiny.rstudio.com/py/api/reference/shiny.Session.send_custom_message.html#shiny.Session.send_custom_message