A PresentationConnectionClosedEvent is declared when a presentation connection enters a closed state. The reason attribute provides the reason why the connection was closed.
error
closed
PresentationConnection called close().wentaway
When the reason attribute is error, the user agent SHOULD set the error message to a human readable description, of how the communication channel encountered an error.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionClosedEvent