chinloyal / pusher_client

A Pusher Channels Client for Fluttter (Fully supports Android and iOS)

Home Page:https://pusher.com/channels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can i make a pusher.connection.state equivalent in this package?

astrO1 opened this issue · comments

I'm searching on documentation and I don't find it anywhere. If not implemented how can I make this work in this package?

This would be a great addition. Apparently, we can listen to state changes but there isn't a way to identify the current state at any point.

@astrO1 This seems like a javascript API. This package is mainly focused on making the APIs more similar to Java or Swift. If you want to know the state use onConnectionStateChange listener, it gives you access to the current state and the previous state