Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with timeout and emitWithAck #380

Open
mfOryx opened this issue May 27, 2024 · 1 comment
Open

error with timeout and emitWithAck #380

mfOryx opened this issue May 27, 2024 · 1 comment

Comments

@mfOryx
Copy link

mfOryx commented May 27, 2024

Hi,
I have this on flutter:

_socket.timeout(5000).emitWithAck(event, data, ack: (dynamic result) { if (kDebugMode) { print('ack $result'); } if (result != null) { if (kDebugMode) { print('from server $result'); return result; } } else { if (kDebugMode) { print("Null"); } return null; } });

without the timeout, everything works fine.
With the timeout, I receive this error:
Unhandled Exception: type 'Null' is not a subtype of type 'bool'

@jumperchen
Copy link
Member

any reproducible example? or please test with the latest 3.0.0-beta.4 version to give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants