hilla icon indicating copy to clipboard operation
hilla copied to clipboard

feat: add onDisconnect callback to subscription

Open krissvaa opened this issue 5 months ago • 3 comments

The onDisconnect callback is called on reconnect. This allows the Flux Connection to call the registered onDisconnect callbacks on reconnect. If the state is already RECONNECTING, subsequent calls to onReconnect will not trigger calling the onDisconnect callbacks multiple times.

Fixes: #398

Also as long-polling has issues with flux connections only websocket connection is supported. Long polling can still be enabled by passing atmosphere options from Connect.ts

krissvaa avatar Aug 30 '24 07:08 krissvaa