reconnectOnClose property

bool reconnectOnClose
final

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

Implementation

final bool reconnectOnClose;