Skip to content

Support event callback function #5

@pyrasis

Description

@pyrasis

server-side.js

socket.emit('hello' , {text: 'world'} , function (res) {
    console.log(res);
});

client-side.js

socket.on('hello', function (data, callback) {
  console.log(data.text);
  callback('hello event ok');
});

please support event callback function.

class socketio_events
{
public:
   static void example(socketio_events&, const Value& args, func callback); // <- callback function
};

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions