Closed ghost closed 3 years ago
For future readers:
io.on('connection', (socket) => {
console.log('Socket connection established');
socket.on('signIn', (bid, callback) => {
console.log(bid); // prints "coffee"
callback('Pizza');
});
});
Please see https://socket.io/docs/v3/emitting-events/#Acknowledgements
For future readers:
io.on('connection', (socket) => { console.log('Socket connection established'); socket.on('signIn', (bid, callback) => { console.log(bid); // prints "coffee" callback('Pizza'); }); });
Please see https://socket.io/docs/v3/emitting-events/#Acknowledgements
this error is coming, is the socket acknowledgement not available for server side yet now?
In socket documentation I think its available https://socket.io/docs/v4/broadcasting-events/#with-acknowledgements
This was marked as closed, but as @arpankumarlahiri mentioned it hasn't been implemented. Will this be implemented or should this marked as won't implement?
@RamAddict getting acknowledgements from a Socket.IO cluster with the emitter is indeed currently not implemented. Could you please share your use case?
Our use case is trying to get a confirmation of a notification back from the user. Our current workaround is to create a @SubscribeMessage (nestjs) and have the user send a message of that kind back with the notification ID if everything went smoothly.
Hello. I can't make an emit with ack function. I would like to send information from client to server, and then, a server will need to reply. Can you help me how to make that, please? Is that appropriate way, if so, how to make it work? Because now it doesn't! Server
Client
Thank you!