If true (default), then the client will automatically try to reconnect to the server if the socket closes, unless it was closed with close.
true
final bool reconnectOnClose;