Skip to content

Registering event handler for phoenix events doesn't work #98

@dyzdyz010

Description

@dyzdyz010

I'm registering leave channel event handler with code below:

channel.on(Event::Phoenix(PhoenixEvent::Leave), |_chn, msg| {
    println!("<Leave>: {:?}", msg);
}).await.unwrap();

But this piece of code never gets called no matter when I call channel.leave().await or client.disconnect().await.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions