Skip to content

Mutliple arguments when Ack #21

@Oskang09

Description

@Oskang09

Trying to get work with featherjs and unable to work with the direct connection given at documentation.

Worked well after make this fix.
( L150, lib/src/socket.dart )

// But would break other data type
List sendData = data === null ? [event] : [event, ...data];

Example code:

_socket.emitWithAck('get', [ 'product', 78 ],
            ack: (error, data) {
                print(error);
            });
_socket.emitWIthAck('find', [ 'product' ], 
            ack: (error, data) {
                print(error);
            });

And also for arguments when success feathers only return error & data, when error only receive error and dart would throw error.

Error Message:

[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: Closure call with mismatched arguments: function 'call'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions