Description
Fires when the connected socket is closed.
Syntax
socket. onClose = function () { body }