codec: updated docs to reflect the correct API for client codec