-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i want to trigger client to client event when pusher successfully subscribe on a presence channel but i cache this error in try catch block "Event is not for this channel" #134
Comments
You can read about how to trigger an event at https://github.com/pusher/pusher-channels-flutter#triggering-events. Looking at the parameters you are using ( |
i modify my code to
but got this PlatformException(error, java.util.HashMap cannot be cast to java.lang.String, null, java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String then i change method to
and go this |
Can you try with this code as previously shared?
|
yes i will inform you soon |
same problem with me
|
|
this is my method
Future testTrigger() async {
try{
await channel.trigger(PusherEvent(channelName: currentChannelName,eventName: "client-my-event", ));
}catch(e){
debugPrint(e.toString());
}
}
The text was updated successfully, but these errors were encountered: