Closes the WebSocket connection
method
WebSocket.close
@param code
A numeric value indicating the status code
@param reason
A human-readable string explaining why the connection is closing
method
A numeric value indicating the status code
A human-readable string explaining why the connection is closing