Skip to content

how to convert .js -> cpp #238

@chillin2

Description

@chillin2

hello
i have a .js for sio client websocket.
i try to convert to client c++.
.js
function send(event, data) {
console.log("** [send] "+ event);
var auth = {
app_user_id : "test1",
auth_token : "testtest",
app_id : "test"
}
var packet = {
auth: auth,
data: data
}

            socket.emit(event, packet)
        }

how to make these data type and emit in cpp.
plz help me plz plz plz
one more question.
where can i find websocket client example code in cpp

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