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

Allow sending an ack with multiple data items (making it consistent with emit) #237

Merged
merged 1 commit into from
Nov 19, 2021
Merged

Conversation

chatziko
Copy link
Contributor

This simple PR changes the ack function to use the same logic as emit when populating the data list. This allows to send an ack with more than one data items.

I find the ability to return multiple items quite useful. Moreover, having the same logic in emit and ack is what the user would expect, and makes the code consistent.

Change the 'ack' function to use the same logic as 'emitWithAck' when populating
the 'data' list. This allows to send an ack with more than one data items.
@jumperchen jumperchen merged commit e6d0cc1 into rikulo:master Nov 19, 2021
@jumperchen
Copy link
Member

Thanks for the contribution.

jumperchen added a commit that referenced this pull request Nov 19, 2021
jumperchen added a commit that referenced this pull request Jul 13, 2022
DanielWHoward pushed a commit to DanielWHoward/socket_io_client_flutter that referenced this pull request Dec 2, 2022
DanielWHoward pushed a commit to xibbit/socket_io_client_flutter that referenced this pull request Dec 2, 2022
@dungphi63
Copy link

Please tell me how to close this print in the terminal of visual code: flutter: [2023-03-21 16:03:39.513626 | socket_io_client:engine.Socket | FINE] socket receive: type "message", data "2["idx",{"a":"u","d":[{"TD":"21/03/2023","NOF":"5","t":1679389419635,"MC":"HNX","SM":"515761","IT":"11:29:14"}]}]"

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

Successfully merging this pull request may close these issues.

None yet

3 participants