vaadin / hilla

Build better business applications, faster. No more juggling REST endpoints or deciphering GraphQL queries. Hilla seamlessly connects Spring Boot and React to accelerate application development.
https://hilla.dev
Apache License 2.0
904 stars 57 forks source link

Introduce onConnectionStateChange callback for Flux subscriptions- #2769

Open krissvaa opened 1 week ago

krissvaa commented 1 week ago

Describe your motivation

Add onConnectionStateChange callback and also change the previous `onDisconnect' callback to receive the current connection state. A subscription can have three different connection states.

Different states should be added as an enum, and the state should be passed as an event object that wraps the state enum value.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response