dxFeed / dxfeed-js-api

dxFeed JavaScript API
https://dxfeed.github.io/dxfeed-js-api/
Mozilla Public License 2.0
8 stars 14 forks source link

Add the ability to subscribe to connection status changes #23

Open Fyzu opened 2 years ago

Fyzu commented 2 years ago

Instead of internal registerStateChangeHandler

Introduce smth like that:

{
  subscribeConnectionStatus: (handle: (status: Status) => void) => Unsubscribe
}