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

getting Error on emitWithAck() in v2 beta #140

Closed
Myotis0815 opened this issue Jan 6, 2021 · 0 comments
Closed

getting Error on emitWithAck() in v2 beta #140

Myotis0815 opened this issue Jan 6, 2021 · 0 comments
Labels

Comments

@Myotis0815
Copy link

When using emitWithAck() in the v2.0.0 beta (combined with v3.0.4 Server on node.js) I get an Error 'invalid payload' from the parser (client code below). I implement a workaround so the parsing itself does work for my case now, but I still do not get any data in my ack-function.
Using v0.9.x with Server v2.4 I do not have any issues.

Are there any changes in the usage of emitWithAck() from v0.9 to v2.0.

Client Code:
socket.emitWithAck( 'eventName', 'someData', ack: (data) { print(data); } );

jumperchen added a commit to rikulo/socket_io_common that referenced this issue Jan 7, 2021
@jumperchen jumperchen added the bug label Jan 7, 2021
jumperchen added a commit to rikulo/socket_io_common that referenced this issue Mar 10, 2021
jumperchen added a commit that referenced this issue Mar 10, 2021
* 2.0-beta:
  Fix #150 Problem with setQuery in socket io version 3.0
  Fix #140 getting Error on emitWithAck() in v2 beta
  fine tune example code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants