chinloyal / pusher_client

A Pusher Channels Client for Fluttter (Fully supports Android and iOS)
https://pusher.com/channels
MIT License
42 stars 175 forks source link

Cannot subscribe to a private or presence channel because no Authorizer has been set. Call PusherOptions.setAuthorizer() before connecting to Pusher #45

Open rakashpal opened 2 years ago

rakashpal commented 2 years ago

PusherOptions options = PusherOptions( host: '192.168.242.99', wsPort: 6001, encrypted: false, auth: PusherAuth( API_BASE_URL+'api/broadcasting/auth', headers: { 'Authorization': 'Bearer '+Provider.of(context, listen: false).token, }, ), );

adham-ashraf77 commented 2 years ago

got any answer?