Skip to content

onReceive("ok") not work on pushEvent #10

@kakashysen

Description

@kakashysen

Hi
I try to receive the "ok" event when I send a message but the event is never arrive. However this event is always received in the phx_event

channel.pushEvent("new:message", payload: payloadMessage)
// never called 
            .onReceive("ok") { (response) in
                // do something 
        }
// never called 
            .onReceive("error") { (response) in
                // do something 
        }

// here always receive the acknowledge when the message sent 
channel.onEvent("phx_reply") { (event, ref) in
            print("chat: phx_replay  \(String(describing: event))")
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions