Skip to content

error: expected unqualified-id before ‘(’ token when using emit event #414

Open
@hoainam10th123

Description

@hoainam10th123

when I use:

 _io->socket()->emit("join conversation", data);

If there is an error, use the following method: error: expected unqualified-id before '(' token
I have attached a photo of the error:
socket emit error
I don't understand where I went wrong. please help me.

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