Skip to content

Can not listen on custom event #23

@congthuyen94

Description

@congthuyen94

How do I listen on a custom event.
For example

client.On("CUSTOM_EVENT", func(msg string) {
    fmt.Printf("on message:%v\n", msg)
})

The code above does not work!
When the server sends a message to CUSTOM_EVENT, the client immediately loses connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions