Skip to content

Only the first parameter is passed to the event's callback #17

@Anislav

Description

@Anislav

On one hand, it is possible to emit an event by including any other parameters:

[socket emit: @"event_name", @1, @2, nil];

On the other hand, when an event and is received by a callback, only the first parameter is passed to it:

[socket on: @"event_name" callback: ^(id data) {}];

The expected behavior is all of the parameters to be passed to the callback as NSArray.

Note that this is supported by the JavaScript client:

socket.on('event_name', function (first, second)  {});

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