Type Alias OnErrorAction

OnErrorAction: "reconnect" | "reconnect-now" | "close"

Declares an action to take when an error occurs.

  • reconnect - reconnect using the current strategy
  • reconnect-now - reconnect immediately, ignoring the current strategy
  • close - close the connection