on Close
Called after the websocket connection has been closed.
Parameters
code
The codes can be looked up here: org.java_websocket.framing.CloseFrame.
reason
Additional information string.
remote
Returns whether the closing of the connection was initiated by the remote host.