socket.io-client-cpp icon indicating copy to clipboard operation
socket.io-client-cpp copied to clipboard

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

Open hoainam10th123 opened this issue 2 years ago • 1 comments

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.

hoainam10th123 avatar Dec 04 '23 06:12 hoainam10th123

image

https://github.com/socketio/socket.io-client-cpp/blob/master/examples/QT/README.md

timurchak avatar Dec 04 '23 18:12 timurchak