Reading the below code, i would like to know if this step is mandatory.
The reason i am asking is because i got it working without returning the producer.id to the client and calling the callback on the .produce client side
So my question is is this only needed if i want to track the producer.id server side from the client side and get stats etc?
Thanks
// Let's assume the server included the created producer id in the response
// data object.
const { id } = data;
// Tell the transport that parameters were transmitted and provide it with the
// server side producer's id.
callback({ id });
}
Yes it’s. If it’s documented as mandatory (and it is) then it’s mandatory.