Detecting Websocket Disconnect

Hi @Marc, this is great - thank you very much. Looks really nice.

One note is that I was able to add HTML inside the message area; which allowed me to include a button users can click that refreshes

pn.extension(
    disconnect_notification="""Server Connected Closed <br /> <button class="btn btn-outline-light" onclick="location.reload();">Click To Reconnect</button> """
)

And it works nicely.

Greatly appreciate the effort to keep moving this project forward

3 Likes